3-way XML merge algorithm 3-way XML merge algorithm xml xml

3-way XML merge algorithm


I don't have a free solution, I'm afraid, but Project: Merge is a cheap XML comparison and merge tool which can be controlled through the command line. It could probably plug straight in to your application.


I can add to your collection DeltaXML - they do not claim diff3, but worth considering.


One free alternative would be to do

$ xmlstarlet fo before.xml > before.xml$ xmlstarlet fo after.xml > after.xml

and then do

$ diff before.xml after.xml

to create a patch of the XML difference. It's free and simple.