LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-08-2009, 03:33 PM   #1
Geneset
Member
 
Registered: Jan 2007
Location: Athlone, ROI
Distribution: Ubuntu Hardy Desktop, Solaris 10, Workstation 2008 x64
Posts: 75

Rep: Reputation: 16
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
 
Old 01-08-2009, 08:44 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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.
 
  


Reply

Tags
diff, xml


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Thinking XML: Firefox 3.0 and XML LXer Syndicated Linux News 0 07-30-2008 07:50 PM
no xml, convert tvtime stationlist to xml for mythtv/freevo... frenchn00b Linux - General 8 11-04-2007 12:35 AM
LXer: StAX’ing up XML: Streaming API for XML LXer Syndicated Linux News 0 11-30-2006 08:54 AM
configure: error: could not find DocBook XML DTD V4.1.2 in XML catalog Fadoksi Linux - Software 1 07-16-2006 07:41 AM
about mysqldump javier_ccs Programming 3 08-08-2005 07:13 PM


All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration