← Back to the blog
CFDINovember 10, 2026

How to open and read a SAT invoice XML

How to open a CFDI XML, what each field means (issuer, receiver, line items, taxes and stamp) and how to check with SAT that the invoice is current.

When you double-click an invoice XML, you usually get a screen full of tags, quotes and codes. The file is not broken: XML is made for systems to read. Here is how to open it, where each field is and how to check that the invoice is valid.

How to open the XML

You have three options:

If you don’t have the XML, download it from SAT’s invoice portal, your invoicing system or your supplier’s email.

Where each field is

A CFDI 4.0 has one main tag, cfdi:Comprobante, with the other sections inside it.

Document details

These are attributes of cfdi:Comprobante:

Issuer and receiver

Line items

Each cfdi:Concepto is one line of the invoice: ClaveProdServ (the SAT catalog code), Cantidad, ClaveUnidad, Descripcion, ValorUnitario, Importe and, when there is one, Descuento. Each line item carries its own taxes.

Taxes

cfdi:Impuestos, at the end of the document, adds up the taxes of all line items: TotalImpuestosTrasladados (such as VAT charged) and TotalImpuestosRetenidos (such as income tax or VAT withheld).

Tax stamp

Inside cfdi:Complemento is tfd:TimbreFiscalDigital, which is what makes the invoice valid:

If the XML has no tfd:TimbreFiscalDigital, it is not stamped and is not a valid CFDI yet.

cfdi:Complemento also holds any complements the invoice carries, such as payments, payroll or Carta Porte.

How to know if the invoice is valid

A well-formed XML does not mean SAT has it on record or that it is still current. To check, open SAT’s CFDI verification and enter the tax folio, the issuer’s RFC, the receiver’s RFC and the total. The result tells you whether the invoice exists and whether it is current or cancelled.

In the OBPDF viewer, the Verify with SAT button opens that lookup with the data already filled in.

If you need the PDF

The XML is the invoice with tax validity. The PDF is its printed representation, the version to read, print and send. If you need the PDF, you can generate it with OBPDF, with the QR code, seals and your logo. We explain how in how to convert an invoice XML to PDF.

Quick questions

Can I edit the XML to fix a field? No. Any change breaks the digital seal and the invoice stops being valid. If there is a mistake, the issuer has to cancel it and issue a new one.

Why does the XML say version 3.3? It is an invoice from before CFDI 4.0, the current version since 2023. It is still valid if it was issued while 3.3 was current.

Do the XML and the PDF have to match? Yes. The PDF must reproduce the XML data. If they don’t match, the XML is what counts.

Turn your SAT XML files into PDF

Create your free account, no card needed

Create free account