I have two XML files (XSD) that are generated by some kind of tool.
The tool does not preserve the order of elements, therefore, despite the fact that the content is comparable to it, since the text will be displayed in different ways.
Is there any tool that can sort items before comparing and will include text-based comparison of documents? Of course, sorting should be done recursively.
Sample data:
File A:
<xml>
<A/>
<B/>
</xml>
File B:
<xml>
<B/>
<A/>
</xml>
source
share