Is there an open source command-line tool (for Linux) to diff XML files which ignores the element order?
Example input file a.xml
:
if you wanted to take this to an arbitrary degree, you could implement something that walks the two trees together and decides along the way which elements "match" between the two documents. that'd let you implement the matching logic any way you want. here is an example in xslt 2.0:
FAIL
PASS
applied to this document (based on your test case), the result is PASS
: