----- Philip Nye <philip at engarts.com> wrote: > The XML spec. is pretty specific that attributes are not ordered and > any XML processor (including XXE) is at liberty to swap them around. > > I find it annoying occasionally, but if XXE doesn't re-order them some > other application will!
Indeed. And if what you're after is a "one true representation" of an XML document, then you need to look to the Canonical XML spec, which has attributes placed in lexicograpic (alphabetical) order, just as XXE writes them: http://www.w3.org/TR/xml-c14n#Example-SETags -- Kevin Yank Technical Director, SitePoint Pty. Ltd.

