Calculator Need
Categories

XML Compare

Compare two XML documents side by side, as a structural diff by path.

Runs entirely in your browser. Nothing you paste or upload leaves your device.

How to use the XML compare

  1. Paste the first XML into box A and the second into box B, or press “Sample”.
  2. Press “Compare”.
  3. Read the structural diff, grouped by path, showing what changed.

XML compare example

Comparing two versions of a product feed shows a changed <price> under /catalog/item[3] and a new <stock> element, each with its path, so you can find it in a large file.

Tips for using the XML compare

  • Format both files first so line numbers are meaningful.
  • Attribute order does not matter in XML; element order usually does.
  • Namespaces must match for elements to count as the same.

XML compare: common questions

What does “structural diff by path” mean?
Differences are listed by their place in the document — for example, note/to — instead of as raw text lines.
What if the XML is invalid?
The tool needs well-formed XML to compare. Fix the error first — the XML formatter page reports errors by line number.
Is my XML uploaded?
No. The comparison runs in your browser.
Can I compare SOAP or RSS files?
Yes; both are XML.