Sorry, but order of elements is not always significant. The XML standard allows you to define sections that must contain a set of elements regardless of order. This can be specified in an XML schema with the tag <xs:all>
If OP doesn't care about element order, then they are better off building a schema and using that to validate their XML
In reply to Re^2: Consistent xml formatting
by SimonPratt
in thread Consistent xml formatting
by Haloric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |