Florian Lindner, 31.08.2012 14:03:
It matters for XML documents, so, yes, any XML parser will definitely
honour the document order (which is actually well defined for an XML document).
What you might be referring to is the case of a specific XML document
format, where the application (or sometimes specification) can explicitly
state that the element order in a given subtree has no meaning for the
semantics of the element and that therefore code must ignore the order in
which elements occur. But that won't magically make the parser ignore it
for you. That's a totally different level of abstraction and a deliberate
decision of the code that *uses* the parser.
Stefan