Lists Home |
Date Index |
Avinash Subramanya writes:
> How do I get a count of the number of attributes of an element?
> <Property prop1="val1" prop2="val2" />
> Count should give me 2.
In SAX, under Java, use the Attributes.getLength() method.
In DOM, under Java, use the NamedNodeMap.getLength() method.
There are, of course, many, many other interfaces for many other
languages. What, exactly, did you have in mind?
All the best,
David Megginson, email@example.com, http://www.megginson.com/