XML viewer

Open an XML file and read it as a tree: fold and unfold elements, search names, attributes and text, and copy the XPath of what you find. Click an element to see its line in the source. Everything runs in your browser

XML

This is : the e-invoice viewer shows it as an invoice, with a PDF to download, and the validator checks it against its rules
Paste or open a document, or load the example, to see it as a tree

Reading the tree

Each element is one row: its name, its attributes and, when it holds only text, that text. Click the arrow to open or close it, or Open all and Close all for the whole document. A small document opens completely; a larger one opens two levels deep, and an element with hundreds of children shows them 200 at a time.

Select a row to see its path, such as /Invoice/cac:InvoiceLine[2]/cbc:LineExtensionAmount, with a position wherever siblings share a name. Copy XPath takes it to the clipboard, ready for the XPath tester, and Show in editor jumps to the element's line. Comments, CDATA sections and processing instructions are shown where they are.

The search box finds elements by name, attribute name or value, or text, ignoring case: type IBAN, EUR or an invoice number. Matches are opened and marked, and the arrows step through them; up to 1,000 are marked at a time.

What it reads

The viewer reads the tags as written rather than building a DOM, so entities such as & stay as they are, and a document that is not well-formed stops with the line and column of the problem. It does not check the document against a schema: for that, and for the business rules of an e-invoice, open it in the validator. An XRechnung, Peppol, Factur-X, FatturaPA or KSeF invoice reads better in the e-invoice viewer, laid out as an invoice.

Saving as PDF

The PDF button saves the document pretty-printed with line numbers and colours, as XML to PDF does, where the page size and the text size can be chosen.

Questions

Is my XML uploaded?

No. The tree is built in your browser; the file never leaves your machine.

How large a file can it open?

Tens of megabytes: the tree is drawn as you open it, so a large document stays quick to browse. The editor above it gets slow past about 20 MB.

Can I edit the XML here?

Yes, in the editor: the tree follows what you type. To reformat the text itself, use the XML formatter.

Does it validate the XML?

It checks that the document is well-formed. For a check 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.
  • 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 diff: Compare two XML documents as trees: changed, added and removed elements, attributes and text.
  • 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.
  • 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.
  • XML validator: check a document against XSD, DTD, RelaxNG or Schematron, up to 1 GB.