Compare Two XML Files with Structural Context
A semantic XML diff tool that understands hierarchical structure — not just text. Detect element changes, attribute modifications, and missing nodes with full path context.
XML Documentation
Find task-based guides for comparing XML, loading and sharing results, editor and library workflows, and automation.
Start with XML comparison
Learn the basic workflow and the rules behind XML Data Compare.
Load & share comparisons
Build result URLs and create share links, with encoding and privacy details.
Editor & library workflows
Review comparisons in VS Code or integrate the XML comparison core in JavaScript.
Automate XML comparison
Run comparisons from the command line or through an AI coding assistant.
Semantic XML diff vs. text diff
Data Compare examines parsed XML structure and values. Git Diff remains available when you need to inspect the exact original text.
Structure over presentation
Attribute reordering and indentation changes alone do not create a semantic difference. These service elements have the same parsed structure and values.
<service name="billing" enabled="true">Ready</service>
<service enabled="true" name="billing" >Ready</service>
Normalized values
Comments are ignored and numeric-looking values become numbers. Data Compare treats these inputs as equal; Git Diff still shows their source-text edits.
<!-- deployed --> <retries>1.0</retries>
<retries>1</retries>
CDATA contributes text, and Data Compare renders XML reconstructed from parsed values. Its normalized layout and value spelling can therefore differ from the source; Git Diff preserves the original input for line-level review.
Need details about repeated elements, case handling, and namespace prefixes? Read the XML comparison rules
Need to inspect the original XML text line by line? Read the XML Git Diff view guide
Choose XML comparison rules
Start with what positions, order, duplicates, and casing mean in your XML vocabulary.
Element/attribute name case
Ignore name case only when Service and service, or Status and status, mean the same names in your XML vocabulary.
Text and attribute value case
Use case-insensitive values for normalized text, not for case-sensitive identifiers, tokens, or user content.
XML Diff Use Cases
Use structural XML comparison to review changes across development and data workflows.
API & SOAP Services
Compare XML request/response payloads for SOAP web services, REST APIs with XML responses, or WSDL definitions. Locate changed elements, attributes, and text while reviewing a contract change.
Configuration File Diff
Track differences between configuration file versions — pom.xml, web.xml, Spring configs, Android manifests, or any structured XML config. Use this XML diff checker to stay in control.
Data Transformation Validation
Validate XML data transformations, compare XSLT outputs, or verify data migration results between XML-based systems and databases.
Document Format Comparison
Compare structured documents in XML-based formats like DocBook, DITA, or SVG files where element structure matters. Review element, attribute, and text changes across documentation revisions.