-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ordering of elements in XML output #60
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ordering of elements in XML 1.0 (as used by ST 2001-1:2013) is not guaranteed, but many XML tools and specifications utilise document order:
children
property of the document information item of the XML-infoset is an ordered list.SMPTE ST 2001-1:2013 states:
Hence, the XML output from regxmllib legitimately includes elements in any order it sees fit. This order appears to be a function of the input file.
I find this behaviour unhelpful when comparing MXF files using (canonical versions of) their Reg-XML representations. It could also be misleading to a user who might try (in spite of the specification details above) to infer meaning from differing element order.
Would it be possible to have regxmllib output elements in lexicographical order? At the very least, having the members of groups in lexicographical order would be helpful.
The text was updated successfully, but these errors were encountered: