in reply to Re: Consistent xml formatting
in thread Consistent xml formatting

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

Replies are listed 'Best First'.
Re^3: Consistent xml formatting
by choroba (Cardinal) on Jul 29, 2015 at 09:12 UTC
    Are you sure XML schema is part of the standard?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ