GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Validator
  • E-invoice
  • Schemas
  • XML formatter Pretty-print or minify XML
  • XML viewer A document as a tree you can search
  • XML to PDF Any XML as a readable PDF
  • XML to JSON Arrays where the XSD allows
  • XPath tester XPath 3.1, matches with their lines
  • JSON to XML @keys as attributes, arrays repeated
  • XSLT transformer XSLT 3.0 with SaxonJS
  • XML to CSV Invoice lines and records as rows
  • XML diff Compare two documents as trees
  • XSD generator An XML Schema from sample XML
  • XML from XSD A sample document from a schema

This view

  • Original page
  • New address

GeezerVison is showing xmlvalid.com — XML Diff: compare two XML files online | xmlvalid

XML diff

Compare two versions of an XML document element by element. Attribute order and indentation never count, namespace prefixes and comments only when you say so, and every difference comes with its path and its line in both documents. Everything runs in your browser

Also count Whitespace Comments Namespace prefixes Order of elements

Original

Open file

Changed

Open file

The documents are the same, as far as the options above count

On this page

How the documents are compared

Both documents are read as trees and compared from the root down. Attributes are compared by name, so their order never matters. Children are paired in order, elements by name, along the longest run the two documents have in common: an element inserted in the middle shows as one addition, not as everything after it changing. Text is compared with its whitespace collapsed.

What else counts is up to you:

Whitespace
Indentation and line breaks between elements, and spaces inside text.
Comments
Added, removed and changed comments.
Namespace prefixes
Off, <o:order xmlns:o="urn:example:orders"> and <order xmlns="urn:example:orders"> are the same element: only the namespace counts.
Order of elements
Untick it for documents whose order carries no meaning, such as a set of records: children are then paired by content.

Reading the result

Each difference says what changed (an element, an attribute, text or a comment), where, as an XPath, its value before and after, and its line in each document; click a line to jump to it. The editors mark the lines in their margins: changes in both, removals in the original, additions in the changed document.

When every byte counts

This tool ignores what XML treats as insignificant. A signed document (XML-DSig, XAdES) must stay identical byte for byte, so compare signed files with a line diff (git diff, diff) as well.

Questions

Is my XML uploaded?

No. Both documents are parsed and compared in your browser.

Does attribute order count?

No, never: XML gives it no meaning, so neither does the comparison.

How large can the documents be?

Documents of a few megabytes compare in a moment. The comparison runs in your browser tab, so its memory is the limit; the first 1,000 differences are listed, all of them counted.

Can it compare a document with a schema?

No, document with document. To check a document against an XSD, DTD or RelaxNG schema, use the validator.

Other tools

  • XML formatter: Pretty-print or minify XML, keeping text, CDATA and comments as written.
  • XML viewer: Read a document as a tree you can fold, search and copy XPaths from.
  • XPath tester: Evaluate XPath 3.1 against a document and see each match with its line.
  • XSD generator: Infer an XML Schema from sample documents, checked against them.
  • XML from XSD: Generate a sample XML document from a schema, validated against it.
  • XSLT transformer: Run XSLT 1.0, 2.0 or 3.0 on a document and see the result, the messages and the files it writes.
  • XML to JSON converter: Convert XML to JSON, with arrays where an element repeats or wherever its XSD allows.
  • JSON to XML converter: Convert JSON to XML: @keys become attributes, arrays repeated elements.
  • XML to CSV converter: Turn a repeating element into CSV rows: invoice lines, products, records.
  • XML to PDF converter: Save any XML as a PDF to read, print or attach: indented, coloured, with line numbers.
  • E-invoice viewer: Read an XRechnung, ZUGFeRD, Factur-X or Peppol invoice as a document, and save it as a PDF.
  • E-invoice converter: Write an XRechnung, Peppol BIS, ZUGFeRD or Factur-X invoice in another of these formats, checked before you save it.
  • ZUGFeRD validator: Check a ZUGFeRD or Factur-X PDF: the XML inside against its profile's rules, and the PDF around it.
  • XRechnung validator: Check an XRechnung in UBL or CII against EN 16931 and KoSIT's XRechnung rules before you send it.
  • UBL validator: Check a UBL invoice, order or any other UBL 2.1 document against its OASIS schema, and the business rules of the profile it names.
  • Peppol validator: Check a Peppol BIS Billing 3.0 or PINT invoice against the OpenPeppol rules before your access point sends it.
  • P7M viewer: open a .p7m file: Open a signed .p7m file: the PDF, invoice or document inside it, and who signed it.
  • XRechnung examples to download: Example XRechnung and ZUGFeRD invoices to download, one for each common case.
  • E-invoicing mandate in Germany: do I have to?: Find out whether your invoices in Germany must be e-invoices in 2026, 2027 and from 2028.
  • Factur-X examples: Example Factur-X invoices of every profile and of the French reform, as XML and as PDF.
  • Leitweg-ID check: Check the form and the check digits of a Leitweg-ID, the address of a German public buyer.
  • Peppol lookup: Check whether a company is registered in Peppol, under which ID, and which invoices it can receive.
  • PDF to XRechnung: Turn a PDF, scan or photo of an invoice into an XRechnung or ZUGFeRD e-invoice: AI fills the form, the rules check it.
  • PDF to ZUGFeRD: Turn your own PDF invoice into ZUGFeRD: the XML goes inside your PDF, its pages as they are, checked against EN 16931 first.
  • Self-billed invoices and credit notes: Write a self-billed invoice (a German Gutschrift, type 389) or a credit note as XRechnung or ZUGFeRD, checked before you download it.
  • Receive e-invoices for free: An email address of your own for e-invoices: forward an XRechnung or ZUGFeRD invoice and get it back as a PDF to read, checked against its rules.
  • XML validator: check a document against XSD, DTD, RelaxNG or Schematron, up to 1 GB.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.