-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
When parsing XML and then writing it out again, the order of attributes is reversed.
This prevents certain use cases where one wants to modify an XML file and have a minimal amount of changes. E.g. adding a new element to a file causes all existing attributes to get reversed.
The cause is here:
aMap: MetaData is built by prepending new attributes to the linked list, causing the reversal.
The attached patch adds a failing test case. (It failed when I wrote it originally, now I can't test it because the build fails).