LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   XML / mysqldump comparison (https://www.linuxquestions.org/questions/programming-9/xml-mysqldump-comparison-695915/)

Geneset 01-08-2009 02:33 PM

XML / mysqldump comparison
 
Hi folks.
I have some large (re <5MB) xml dumps from DB's that i work on, and i wanted to compare them.

Diffing them is largly pointless because I'm more interested in knowing WHAT is different instead of knowing that some line shifted a bit.

I was condsidering loading them into perl hash's and doing some recursive comparisons, since after google-ing for the past half hour for "xml diff"/ "xml comparison" has yielded nothing really suitable (I'm on a headless *nix box and am looking to automate the whole process so a GUI of any sort is pointless, and most of the standard xmldiff programs arnt what i want)

So has anyone got any better ideas?

I have to say i was suprised to not find much about this as i would have expected this to be a fairly standardised utility *shrug*

Regards
G

chrism01 01-08-2009 07:44 PM

Well, if you go to search.cpan.org and ask for 'xml diff' you get a bunch of results, inc

http://search.cpan.org/~timm/XML-Diff-0.05/Diff.pm, http://search.cpan.org/~vbar/XML-Dif...renceMarkup.pm, http://search.cpan.org/~ekawas/XML-S...nticCompare.pm.

Reckon they might be what you want.


All times are GMT -5. The time now is 10:22 PM.