I want to sort an XML file.
Let's assume, we have following XML:
<test>
<a attribute="sortme2">
<b>
<c donttouchme="aaa"/>
</b>
</a>
<a attribute="sortme">
<b>
<c donttouchme="aaa"/>
</b>
</a>
<a attribute="sortme1">
<b>
<c donttouchme="aaa"/>
</b>
</a>
</test>
I want to have following output:
<test>
<a attribute="sortme">
<b>
<c donttouchme="aaa"/>
</b>
</a>
<a attribute="sortme1">
<b>
<c donttouchme="aaa"/>
</b>
</a>
<a attribute="sortme2">
<b>
<c donttouchme="aaa"/>
</b>
</a>
</test>
Can you help me? I would be so glad! Thank you.