I' d use XMLUnit for this as it can cater for elements being in a different order.
That post suggests doing a canonical xml sort then doing a diff.
Another thank you from me, Dale! I was about to write something similar, but found your elegant and simple solution that did exactly what I was ...
Different value between the two XML: highlight in red color; Element only presents in a
If you have things that you consider equivalent, but which aren't equivalent at the XML level - for example, elements in a different order - then ...
Comparing XML files ignoring order of attributes and elements - see http:// dalelane.co.uk/blog/?p=3225 for background - xmldiff.py.
each using a different comparator and method for customising a comparison:
... This tells XML Compare that the order of child elements of
Comparing XML files ignoring elements attribute Order · Issue #139 , And i need to ...
XML files are considered different because of different target nodes placement in the
I am having some difficulties comparing XML files. According to XML specs the order of the attributes is not significant. So these 2 statements when