Toy utility that can be used to "normalize" or modify an XML file.
WARNING: This is not standard XML normalization, but it can be useful.
This can:
- Pretty print file (indentation string can be specified).
- Sorting
- Sort all attributes.
- Move some attributes to first position.
- Sort all elements.
- Scrambling
- Scramble values of all attributes.
- Scramble values of some attributes.
- Scramble content of all elements.
- Scramble content of some elements.
- Removal
- Remove all empty attributes.
- Remove all empty elements.
- Remove all comments.
TODO remove some attributes / elements
TODO rename some attributes / elements