UBL vs. CII: The Two XRechnung Syntaxes Compared
Anyone looking into the XRechnung soon runs into two abbreviations: UBL and CII. Both are valid — but what is the difference?
Same model, different language
The EN 16931 standard defines one data model but allows two XML syntaxes to represent it:
- UBL 2.1 (Universal Business Language) — developed by OASIS, also standardised as ISO/IEC 19845.
- CII (Cross Industry Invoice) — developed by UN/CEFACT.
Think of them as two languages for the same content: the meaning (“invoice date”, “net amount”) is identical, only the XML elements are named differently.
Who uses what?
| Syntax | Typical use |
|---|---|
| UBL | Peppol BIS Billing 3.0, XRechnung (optional) |
| CII | ZUGFeRD / Factur-X (always), XRechnung (optional) |
The XRechnung supports both — the sender decides. ZUGFeRD, by contrast, uses CII only, because the XML there is embedded into a PDF.
Which syntax should you choose?
Since both are equally conformant, there is no “better” choice in a technical sense. Decide based on practice:
- Follow the recipient: some bodies or systems prefer one syntax.
- Follow your software: use the format that your tool produces cleanly.
- When in doubt, UBL, if you send via Peppol.
For the recipient it makes little difference anyway: good software reads both syntaxes and validates both against EN 16931.
Open and check both syntaxes
Whether UBL or CII — you can open the file and display it readably and validate it against EN 16931. The tool detects the syntax automatically, locally in the browser.
Frequently asked questions
What is the difference between UBL and CII?
Both are XML syntaxes for the same EN 16931 data model, but they differ in origin and element names. UBL comes from OASIS, CII from UN/CEFACT.
Which syntax should I choose for the XRechnung?
Both are equally valid. Follow the recipient and your software. UBL is common in the Peppol environment, CII is used by ZUGFeRD.
Can an XRechnung exist in both syntaxes?
Yes. The XRechnung supports both UBL 2.1 and UN/CEFACT CII. The sender chooses one; both are conformant to EN 16931.