ValidateFin

XML Comparator SEPA / UBL / camt

The XML Comparator is a free online diff tool that lets you compare two XML files side by side and highlights every difference line by line. It works with any XML format: SEPA pain files, UBL invoices, camt.053 statements, configuration files, or any other XML document.

Side-by-side diffAny XML formatSEPA / UBL / camt
100% Local

File A

File B

About the XML Comparator

The XML Comparator is a free online diff tool that lets you compare two XML files side by side and highlights every difference line by line. It works with any XML format: SEPA pain files, UBL invoices, camt.053 statements, configuration files, or any other XML document.

Added lines are shown in green, removed lines in red, making it easy to spot changes between versions of a file. Both files are compared entirely in your browser — no data is transmitted to any server.

This tool is especially useful for debugging validation failures: compare a rejected file with a previously accepted one to spot exactly what changed. It is also valuable for verifying ERP updates — after upgrading your payment generation module, compare the old and new output to ensure nothing unexpected changed in the XML structure.

The comparator handles large files efficiently and preserves XML formatting for readability. Whether you are comparing two pain.001 files with different transaction sets, verifying that a UBL invoice was correctly modified, or auditing changes between two camt.053 statements, the line-by-line diff view gives you immediate clarity on every difference.

What is XML Comparison?

XML comparison (or XML diff) is the process of identifying differences between two XML documents. It detects added, removed, and modified elements, attributes, and text content. This is essential for verifying changes between invoice versions, debugging payment file modifications, and ensuring consistency between original and processed documents.

Key Takeaways

  • Compare two XML files side-by-side with highlighted differences
  • Detects added, removed, and modified elements, attributes, and text content
  • Useful for debugging SEPA, UBL, and Camt.053 file changes
  • All comparison processing happens locally in your browser
  • Helps verify that file modifications preserve data integrity

Frequently Asked Questions

What types of XML files can be compared?

Any valid XML file can be compared: SEPA pain files, UBL invoices, camt statements, or any other XML format. The tool is format-agnostic. To validate individual files, use the SEPA Validator or UBL Validator.

How are differences highlighted?

Differences are shown line by line with color coding: added lines in green, removed lines in red, and modified lines marked for easy identification.

Is there a file size limit for comparison?

Files up to 10 MB each can be compared. For very large files, the diff may take a few seconds to process in the browser.

Are the XML files sent to a server during comparison?

No. Both files are compared entirely within your browser. No data is uploaded or transmitted to any external server.

What are common use cases for XML comparison in finance?

Common use cases include: comparing two versions of a SEPA payment file before and after a correction, verifying that an ERP-generated UBL invoice matches the expected template, auditing changes between two camt.053 bank statement exports, debugging differences between a test and production XML output, and validating that an XML schema upgrade did not introduce unexpected changes.

Can I compare XML files that have different whitespace or formatting?

The comparator performs a line-by-line text diff. If two files contain the same data but with different indentation or whitespace, those lines will appear as differences. To compare only the semantic content, consider formatting both files with consistent indentation before comparison (many XML editors offer an auto-format option).

How does the diff algorithm work?

The tool uses a standard line-by-line diff algorithm (similar to Unix diff) that finds the longest common subsequence between the two files. Lines present in the second file but not the first are marked as additions (green). Lines present in the first but not the second are marked as deletions (red). Unchanged lines are displayed without highlighting.

Can I compare non-XML files like JSON or CSV?

While the tool is optimised for XML, it can technically compare any text-based file format. However, files that are not well-formed XML will not be syntax-highlighted or pretty-printed. For best results, use XML files with a proper declaration and consistent formatting.

Is there a way to ignore certain XML attributes or elements during comparison?

The current version performs a full text comparison without filtering specific attributes or elements. If you need to compare only a subset of the XML content, extract the relevant section into a separate file before uploading.

Can I use this tool to detect changes between two versions of an XSD schema?

Yes. XSD schema files are XML and can be compared directly. This is useful for tracking breaking changes between schema versions, such as when the EPC releases a new version of the pain.001 or camt.053 XSD, or when comparing Peppol BIS 3.0 rule versions. After comparing, validate your files with the SEPA Validator.