Re: [xml] doing an xml diff



Aamer Akhter <aakhter gmail com> writes:

Hello,

This question isn't specific to libxml2:

Is there a list/review of XML diff utilities/libraries that anyone is
aware of? There seem to bunch out there but they seem to be in a state
of disrepair, or provide a huge change set for just simple leaf
element node disappearing.

I don't know of such a list. I only may share my personal
experience. I've tried all Java tools I could find, the single Python
xmldiff, several Perl modules and the Microsoft xmldiff/patch
toolkit. Except for the last one, all had their problems and if they
produced any output on my (largish) files within a reasonable long
time and resources then the result resulting change set was
inadequate (some of them even say: remove the whole 1st document and replace
it with the 2nd one).

On the other hand, I have very good experience with the MS toolkit,
which is surprisingly provided including source code (although I
didn't examine the EULA), is written in C# and runs even on Linux
under Mono both without compilation and Mono-compiled. It seems
reasonably fast (parses and compares >10Mb files in just a few
seconds) and the change set also seems adequate and reasonably small.

-- p

Attachment: pgp0UhD_b5YG9.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]