Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: XML file difference highlights

by choroba (Cardinal)
on Jun 14, 2017 at 16:47 UTC ( [id://1192811]=note: print w/replies, xml ) Need Help??


in reply to Re: XML file difference highlights
in thread XML file difference highlights

See also comparing XML files.

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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1192811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found