I need to diff large directory structures containing generated .xml and .wsdl files. The generated .xml files differ in the order that child elements appear. The XmlUnit Diff.similar() method is supposed to handle this case:
'Two documents are considered to be "similar" if they contain the same elements and attributes regardless of order.'
This is not the case, however. I took a .xml file, reversed the order of two child elements and XmlUnit says that they are not similar.
XmlUnit is broken, providing no more functionality than the built-in diff utility.
Is there an alternative to XmlUnit that recognizes simple differences in .xml files like ordering of child elements?