I saw the newly released XML.jl and I am really excited about it.
I wonder if it is possible to “enforce” attribute ordering? I have a case in which I want to produce and XML which is meant to be both human readable and machine input. Suppose I have an XML tag:
<point x=0 y=0 z=0/>
This nice because x y and z are ordered - the machine who reads it does not care about the order of course, but the human user who has to edit it, does. Currenly in XML.jl:
using XML
XML.Element("point",x=0,y=0,z=0)
Node Element <point x="0" z="0" y="0">
Which is not ordered, which makes the human user sad.
Is there any way to make it so that the order of input arguments into XML.Element is respected?
I do not care about performance, I much higher value the ordering of inputs, so even subpar performance (but generic) solutions I would appreciate at this stage