Invosphere
Create invoice

How to Open an XML Invoice: Read UBL, CII and e-Invoice Files (2026)

How to open an xml invoice guide from Invosphere, 2026

By Muhammad Wasim, founder of ToolSphare · Updated 2026-11-30 · ~7 min read

An XML invoice is an electronic invoice delivered as structured data rather than as a picture of a document. Instead of a PDF that people read, it is a file of tagged fields such as seller name, VAT number, line items and totals, designed to be read by software. XML invoices are now common because of e-invoicing mandates in Europe, Latin America and Asia, and because public sector buyers in many countries only accept structured formats. If you receive one by email for the first time, it can look like a page of code. The good news is that you do not need special skills to read it. This guide explains what XML invoice formats you are likely to see, how to open them in a browser or free viewer, how accounting software imports them, how to check that the invoice is genuine and correct before paying, and what to do when you need to send XML invoices yourself. It is general information, not tax or legal advice.

How to open an xml invoice guide from Invosphere, 2026
An XML invoice is structured data; a viewer turns it into a readable invoice layout.

What an XML invoice is

XML (Extensible Markup Language) stores information in labelled fields. An invoice XML file contains elements such as the invoice number, issue date, seller and buyer, tax amounts and each line. Because the structure is standardised, the buyer’s software can read it automatically without retyping.

Some invoices combine both worlds: a PDF that people can read with the XML embedded inside it. ZUGFeRD and Factur-X work this way. Others are pure XML, such as XRechnung in Germany or Peppol BIS Billing documents across Europe and beyond.

Common XML invoice formats

You will most often see one of the following.

FormatWhere it is usedHow to recognise it
UBL 2.1Peppol, many EU countries, Australia, New Zealand, SingaporeRoot element Invoice or CreditNote with UBL namespace
UN/CEFACT CIIZUGFeRD, Factur-X, some XRechnungRoot element CrossIndustryInvoice
FatturaPAItaly (SDI)FatturaElettronica root, often .xml or signed .p7m
CFDIMexicocfdi:Comprobante root with a tax stamp
National formatsVarious countriesFormat name in the file or covering email

For background on the main standards, see the UBL e-invoice standard and CII cross industry invoice.

Opening an XML invoice in a browser

Every modern browser can open an XML file. Drag the file into a browser window or right-click and choose to open it with your browser. You will see the tree of fields. It is not pretty, but you can find the key information by searching for words such as ID, IssueDate, PayableAmount or the seller’s name.

This is enough to check the basics: who sent it, the invoice number, the amount and the due date. For a readable layout, use a viewer.

  1. Save the attachment. Do not open files from unknown senders.
  2. Open with a browser. Drag and drop or open with.
  3. Search for key fields. Invoice number, total, due date, IBAN.
  4. Compare with your order. Supplier, items, prices.
  5. Use a viewer for full detail. If you need the complete layout.

Using an XML invoice viewer

Free online and desktop viewers convert common e-invoice formats into a readable invoice. Many tax authorities and e-invoicing networks provide official viewers, for example for XRechnung or FatturaPA, and some accounting packages include a viewer for incoming e-invoices.

Be careful with online viewers. An invoice contains business and banking information. Prefer official tools or reputable software, and avoid uploading invoices to unknown websites.

  • Official government or tax authority viewers.
  • Viewers built into accounting or ERP software.
  • Open-source desktop tools for UBL and CII.
  • The PDF part of a hybrid invoice, if one is included.

Importing into accounting software

The real benefit of XML invoices is automatic processing. Many accounting tools can import UBL or CII files directly, create the supplier bill, and match it to a purchase order. If you receive XML invoices regularly, ask your software provider whether you can receive them through a Peppol access point or an email-to-bill address. See Peppol access points.

Checking an XML invoice before paying

Structured invoices are not automatically trustworthy. Fraudsters can send fake XML just as easily as fake PDFs. Before paying, run the same checks you would for any invoice.

  • The supplier is genuine and the invoice relates to a real order.
  • Bank details match the supplier’s known details. Verify any change by phone.
  • Quantities and prices match the order or contract.
  • Tax amounts and the total are correct.
  • The invoice has not already been paid under a different number.

For bank detail changes, see vendor bank change verification.

When the file will not open or validate

If a file will not open, it may be a signed container, such as a .p7m file used in Italy, which needs a signature tool to extract the XML. If it opens but your software rejects it, the file may fail validation rules, for example a missing VAT number or wrong totals. Ask the supplier to correct and resend it. See e-invoice validation errors for common causes.

Reading the key fields

Most invoice XML files use readable element names, even if they look technical at first. In a UBL invoice, look for cbc:ID for the invoice number, cbc:IssueDate for the date, cbc:DueDate for the payment deadline, cac:AccountingSupplierParty for the seller and cac:AccountingCustomerParty for the buyer. The totals are in cac:LegalMonetaryTotal, where cbc:PayableAmount is the amount you need to pay.

In a CII file, the equivalents sit under ExchangedDocument for the number and date, SellerTradeParty and BuyerTradeParty for the parties, and SpecifiedTradeSettlementHeaderMonetarySummation for the totals, with DuePayableAmount showing what is owed. Bank details are usually in a payment means section, with an IBAN or account identifier.

Once you know these few elements, you can check any invoice in under a minute, even without a viewer.

Why you will see more XML invoices

More countries are making structured e-invoices compulsory for business-to-business sales. Belgium requires them from 2026, and Germany, France, Poland and others are phasing in mandates between 2025 and 2028. In Latin America and parts of Asia, clearance e-invoicing has been standard for years. Even if your own country has no mandate, customers and suppliers abroad may start sending XML files.

For small businesses, the practical step is to choose accounting software that can receive and read e-invoices, or a service that converts them into bills automatically. That removes the need to open XML files by hand at all.

If you are unsure which rules apply, check the e-invoicing guidance from your tax authority or ask your accountant. See Germany e-invoicing and France e-invoicing for two examples of mandates being phased in.

Storing XML invoices

Keep received XML invoices in the original format, together with any PDF and the email or portal record of receipt. In many countries the electronic file is the legal invoice, and tax inspectors may ask for it rather than a printout. Name files consistently, for example by supplier and invoice number, and back them up with the rest of your accounting records.

If you need to send XML invoices yourself

If a customer asks you for an XML invoice, find out which format and channel they need, for example Peppol BIS Billing 3.0 via a Peppol access point, or a national portal. Many accounting tools can produce these formats. If you only create PDF invoices today, a provider can convert or send them for you.

Keep the XML as your legal record where the law treats the structured file as the original invoice. A PDF printout may not be enough for archiving. See invoice archiving for storage options.

XML invoice FAQ

Can I open an XML invoice without special software?

Yes. Any web browser can open it, though a viewer gives a more readable layout.

Is an XML invoice a real invoice?

Yes. In many e-invoicing systems, the XML file is the legal original invoice.

Why did I receive a PDF and an XML?

Some suppliers send both: the XML for software, the PDF for people.

Is it safe to use online XML viewers?

Use official or reputable tools, because invoices contain sensitive business data.

How do I print an XML invoice?

Open it in a viewer that renders a layout, then print or save as PDF.

Create a clear, complete invoice in minutes

Need a readable PDF invoice instead? Create one free with Invosphere. No sign-up.

  • 134 invoice and document types
  • 16 country tax presets
  • 35 languages
Open the free invoice generatorBrowse invoice templates
Muhammad Wasim, software engineer and founder of ToolSphare, builds Invosphere’s invoice generator and invoicing software. He writes practical billing guides for small businesses in 16 countries. About Invosphere · Contact
This guide is general information, not legal or tax advice.

Create your invoice in minutes

Open the free Invosphere invoice generator, pick from 134 invoice types and download a PDF. No sign-up needed.