[Home] [By Thread] [By Date] [Recent Entries]


Avinash Subramanya wrote:

>      How do I get a count of the number of attributes of an element?
> 
>      ex:
>      <Property prop1="val1" prop2="val2" />
> 
>      Count should give me 2.

count(Property/@*)

PS.I presume you are talking about XPath.
-- 
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member