Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion back to XML does not observe attribute order in <?xml> declaration #5

Open
geert56 opened this issue Sep 9, 2020 · 0 comments

Comments

@geert56
Copy link

geert56 commented Sep 9, 2020

Officially, an XML declaration requires its attributes to be in the order: version, encoding, and then standalone.
See for instance: https://xmlwriter.net/xml_guide/xml_declaration.shtml.
Unfortunately, jtm seems to store all attributes in a data structure that does not preserve order, which is
perfectly all right for any regular element's attributes.

A simple fix is to ensure that upon output of the XML declaration, its attributes are forced to be in the correct order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant