in reply to Comparing two xml files

I usually just run
xmllint --c14n "$xml" | xmllint --format -
on both files and use standard diff on the results. But it really depends on the type of XML files and typical changes that occur in them.