Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool or library for comparing xml files [closed]

I am looking for an XML comparing tool that understands xml. It cannot be a line by line comparision like WinMerge or Beyond Compare.

An ideal solution would be one that shows changes similar to the way Word 2007 shows track changes. DeltaXML does this, but does not come with a real GUI 'out of the box' and is $500 per user!:

ExamXml works out of the box but displays the differences in a confusing manner. It does not have a concept of before and after, it just shows the differences:

alt text
(source: a7soft.com)

The tool should have the concept of using attributes as a key, so that it does not think that a reordered list of elements has changed. DeltaXML does this but I failed to set it up correctly for the screen shot.


UPDATE:

So far ExamlXML is the best out of the box solution. But it lacks the change management concepts of DeltaXML. Resulting in some usability problems.

DeltaXML is pretty much the solution I need, but something with more functionality out of the box would be better. DeltaXML requires writing java code to call the api, along with writing XSL to transform the xml into the expected input.

like image 756
joe Avatar asked Feb 13 '09 19:02

joe


People also ask

How can I compare two XML files?

Choose XML Files to CompareSelect a file, right-click, and select Compare Against. Select the second file to compare in the Select Files or Folders for Comparison dialog box. Select the Comparison type XML text comparison . Click Compare.

Which of the following methods is used to compare two XML files?

compareXML(source, target) to compare two XML files. This method takes Document, Reader, or String to get XML content.

How do I compare two XML files in Python?

You could try using xmldiff, which is based on work in the paper Change Detection in Hierarchically Structured Information. xmldiff is GPL.


1 Answers

I am very surprised nobody mentioned Microsoft's XML NotePad

It's free and it can create a pretty good comparison, telling which elements/attributes have changed, moved, been deleted, etc.:

(Sorry if the screenshots are a little wide).

You can also apply XLSes to the XML file and do various editing operations. Well worth a try.

like image 100
Sylverdrag Avatar answered Oct 07 '22 12:10

Sylverdrag