Tried to use @Jukka Matilainen's answer but having issueshad problems with white-space (one of the files was a huge one-liner).
Using --format
helps to skip white-space differences.
xmllint --format one.xml > 1.xml
xmllint --format two.xml > 2.xml
diff 1.xml 2.xml
Note: Use vimdiff
command for side-by-side comparison of the xmls.