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

Ordering of elements in XML output #60

Open
mglanville opened this issue Jul 27, 2015 · 0 comments
Open

Ordering of elements in XML output #60

mglanville opened this issue Jul 27, 2015 · 0 comments

Comments

@mglanville
Copy link
Contributor

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:

  • the children property of the document information item of the XML-infoset is an ordered list.
  • XPath

SMPTE ST 2001-1:2013 states:

no requirement exists to sort properties into an externally predetermined order

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.

@palemieux palemieux modified the milestones: Backlog, 1.1.0 Aug 3, 2015
@palemieux palemieux modified the milestones: Backlog, 1.1.0 Aug 24, 2016
@palemieux palemieux removed this from the Backlog milestone Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants