PDA

Click to See Complete Forum and Search --> : C++ source code to compare XML files like ExamXML XML differencing tool


alapick
Apr 25th, 2007, 10:10 AM
I’m working on a Linux project that includes identifying changes between XML files and I need a source code on C++ to compare XML fragments.
I’m using differencing tool ExamXML from http://www.a7soft.com to compare and merge XML files but this is Windows application.

wossname
Apr 25th, 2007, 01:09 PM
You can try the "eXPat" libraries. They are open source and available for Windows and Linux.

mightor
May 5th, 2007, 10:01 AM
Not sure if this thread is still relevant, but you can also have a look and see how these http://www.logilab.org/view?rql=Any%20X%20WHERE%20X%20eid%20859 guys did it.
---
xmldiff [active development]

summary a python tool that figures out the differences between two similar XML files, in the same way the diff utility does i

Xmldiff was initially developed for the Narval project and could also be used as a library or as a command line tool. It can work either with XML files or DOM trees
---

Yeah it is in Python but should translate into almost anything, except Intercal (http://catb.org/~esr/intercal/), with a bit of experience.

If you want more xmldiff-like programs, just google for it: http://www.google.com/search?q=xmldiff, I think I spotted Perl, Java, Python...

Gr,
Mightor