XML Compare
Compare two XML files side by side and spot every change in tags, attributes and text.
How XML Compare works
Compares two XML documents and shows what changed. Both sides are formatted with the same 4 space indentation first, so differences in spacing and line breaks between tags do not count. Only real changes in tags, attributes and text show up.
Results show side by side. Removed lines are marked with a minus on the Original side and added lines with a plus on the Modified side, with line numbers on both. Each side is checked as you type, and errors show the line and column.
Input to XML Compare
- Original XML: paste or type the first document, or upload a .xml, .xsl, .xslt, .svg or .xhtml file.
- Modified XML: paste or type the second document, or upload a file the same way.
- Both sides must be well formed XML. The Compare XML button works once both are valid.
- Use Swap XML to switch the two sides, or the format button on each side to indent it first. Everything runs in your browser.
Output from XML Compare
- A count of added and removed lines, or Identical when both sides are the same.
- A side by side view with changed lines in color and blank rows where a line exists on one side only.
- Attributes in a different order count as a change, since the compare works line by line.
- Copy the formatted XML of either side. Click Edit XML to go back and change the inputs.