# UBL 2.5 Invoice

Source: https://xmlvalid.com/schemas/ubl-2.5-invoice

> The UBL invoice in its latest version, 2.5 (August 2026), the version Spain's public e-invoicing solution checks against.

UBL 2.5 is a minor revision of UBL 2: every valid UBL 2.1 invoice is a valid UBL 2.5 invoice, under the same namespace. It adds elements (for example on emissions and product sustainability) and marks some old ones as deprecated without removing them.
The schema checks structure and data types: which elements exist, in what order, and what they may contain.

- Type: XSD
- Version: 2.5
- Namespace: `urn:oasis:names:specification:ubl:schema:xsd:Invoice-2`
- Root element: `Invoice`
- Publisher: OASIS (OASIS copyright notice), source: https://docs.oasis-open.org/ubl/os-UBL-2.5/
- Validate against it: https://xmlvalid.com/validate?schema=ubl-2.5-invoice

## Notes

- These are the normative schemas from the OASIS release (xsdrt, without annotations). OASIS also publishes "endorsed" schemas that leave out deprecated elements such as CopyIndicator; documents valid here can fail those.
- This entry checks the schema only, with no EN 16931 or national business rules. Peppol BIS and EN 16931 are built on UBL 2.1; for their rules, choose those entries.
- The example is the UBL 2.1 invoice example shipped in the UBL 2.5 release.
