I still use the following bash script to compare XML files and usually find its output informative enough, if not more readable than various XML oriented diff tools.
#!/bin/bash a=($@) b=$# f2=${a[$((--b))]} f1=${a[$((--b))]} diff "${a[@]:0:$b}" \ <(xmllint --c14n "$f1" |xmllint --format -) \ <(xmllint --c14n "$f2" |xmllint --format -)
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re^2: XML file difference highlights
by choroba
in thread XML file difference highlights
by PiyaPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |