|
Hi,
Im making use of Apache Xerces C.
Im interested in getting the attribute names and
values in the order in which they are described in XML.
The method getAttributes( ) of DOM_Node class
returns a DOM_NamedNodeMap class,
I retirve the attribute names and values using the
item( ) method of this class.
However the attributes get arrange in
ascending order, what I want is that the attributes to remain arranged in order
in which they are in the XML.
Is it possible to do it?
eg:
<person name="ppp" age="34">
The attributes get arranged in ascending order, so
if I write this code
its a pseudo code:
person.getAttributes( ).item( 0
).getNodeName()
----> would give me "age" rather than "name", because internally things get
arranged into ascending order on namednodemap.
I want is that
person.getAttributes(
).item( 0
).getNodeName()
----> should give me "name".
I hope im clear.
Prasanna Bhale
Net Team Inc.
2101, Arena Blvd. Suite 100 Sacramento CA - 95834 Main #: 916.566.1120 Fax #: 916.566.1188 |
- Attributes are unordered (formerly Re: very urgent) prasanna
- Attributes are unordered (formerly Re: very urgent) Derek Harmon
- Re: very urgent kiuma
- Re: very urgent Joseph_Kesselman
