LinuxQuestions.org
Review your favorite Linux distribution.
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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
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
Thanked: 1
XML / mysqldump comparison


[Log in to get rid of this advertisement]
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
Geneset is offline  
Tag This Post ,
Reply With Quote
Old 01-08-2009, 08:44 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,428
Thanked: 325
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.
chrism01 is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:25 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration