Subject: | XML reconstructed does not respect ordering |
When reconstructing a set of XML from the parse tree of some input XML,
ordering of both attributes and tags are not currently preserved.
[This can be seen in the commented out tests in the utf8 bug report/patch]
Fixing the tag ordering ought to be relatively easy - it looks like
something just got broken within obj2xml (which looks like it has
issues since the parameters passed into it from the xml function are
inappropriate too (pad should not be a number)).
Fixing attribute ordering (which might not be thought appropriate since
ordering should not be vital) would require _pos values to be attached
to the parse tree for each attribute.