You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Gregory Freeland <gf...@jpg.com> on 2006/10/31 16:14:22 UTC
Change index order of attributes of a DOMNamedNodeMap?
Hi,
Using DOMBuilder to parse a file, is there a setting or feature that can change the order of the attributes in a DOMNamedNodeMap, so they are in the order they appear in the XML file? Currently, it appears the attributes are in some kind of alphabetical order.
Thanks,
Greg
--
Re: Change index order of attributes of a DOMNamedNodeMap?
Posted by David Bertoni <db...@apache.org>.
Gregory Freeland wrote:
> Hi,
> Using DOMBuilder to parse a file, is there a setting or feature that can change the order of the attributes in a DOMNamedNodeMap, so they are in the order they appear in the XML file? Currently, it appears the attributes are in some kind of alphabetical order.
No. Attributes are explicitly unordered in XML, so you'll either have to
sort them yourself, or change your application so the order doesn't matter.
I recommend the latter.
Dave