Skip to content
Input
XML
Limit
1 MiB
Runtime
Browser

Compare two XML document trees

Parse two XML documents and report bounded path-level structural changes rather than treating every formatting difference as a content change.

Local processingNo sign-upNo network access

Compare XML

Inputs are limited to 1 MiB and stay in this browser tab.

Paste or edit the source. Tool Swim does not upload or save it.

Paste the document to compare. Both documents remain in this browser tab.

Structural change report

Nothing is placed in a URL, account, or remote log.

What this tool does

XML 1.0, bounded, and local

Tree comparison separates represented nodes from much of their source presentation. It helps identify element, attribute, text, comment, CDATA, processing-instruction, order, and namespace changes.

Paths make changes reviewable

The report identifies additions, removals, and changed values at indexed node or attribute paths. Child order remains significant because XML is an ordered tree.

A structural diff is not a signature check

This operation does not implement Canonical XML, XML Signature, schema-aware defaults, or application-specific whitespace rules. Use the required canonicalization and security stack for signed data.

Primary references

Questions and answers

Related XML tools