dcsimg
Need Attributes of an Element in unsorted form.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anjli_Nandwani
Posted On:   Wednesday, January 12, 2005 01:23 AM

Hi,

I am facing a problem while parsing one XML file.

there is one element



Now I want to get all the attributes in this element, not the values but the attributes.

If I use

Element.getAttributes(), it returns a NamedNodeMap which is sorted, i.e. I get

auditable,
Exception,
id

which is not my requirement, I want to get

id,
Exception,
auditable

the same order in which they appear in Element.

Is there any way to do that????

Re: Need Attributes of an Element in unsorted form.

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, January 12, 2005 02:17 AM

Please explain why you need this in this way. XML was not designed to have a fixed order of attributes.

About | Sitemap | Contact