-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inconsistent ordering of attributes in XML output #42
Comments
Can you provide your TreeNodesModel XML files |
In my case I create the TreeNodesModel XML file by dumping the bt_factory with
But in
To me the expected behavior is that |
Is your feature request related to a problem? Please describe.
This is probably less a bug than a feature request: It seems currently the XML that Groot2 saves has very inconsistent ordering of attributes of XML tags. That means if you save XML with Groot2 and then after some edits save again it mixes up the order of attributes in otherwise unchanged elements. If you track your XML in a versioning system this generates much more than the necessary changes which is very annoying.
I didn't find a real pattern when and where it happens, so I can't give a minimal reproducing example. But with my projects it happens basically with every edit & save.
Describe the solution you'd like
Groot2 should not change XML that has not been modified. It could e.g. preserve the order in which the attributes have been added. Or I would also be okay if it just enforced an ordering in the XML output (e.g. alphabetically).
The text was updated successfully, but these errors were encountered: