Developer XPath & Syntax Mapping: UBL 2.1 vs UN/CEFACT CII
| Semantic Concept | UBL 2.1 (Peppol BIS 3.0) | UN/CEFACT CII (Factur-X) |
|---|---|---|
| Root Element | ||
| Issue Date (BT-2) | ||
| Invoice Number (BT-1) | /Invoice/cbc:ID | //rsm:ExchangedDocument/ram:ID |
| Currency (BT-5) | /Invoice/cbc:DocumentCurrencyCode | //ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode |
| Seller Endpoint (BT-34) | //cac:AccountingSupplierParty/cac:Party/cbc:EndpointID | //ram:SellerTradeParty/ram:URIUniversalCommunication/ram:URIID |
| Tax Inclusive Total (BT-112) | //cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount | //ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount |
| Line Net Amount (BT-131) | //cac:InvoiceLine/cbc:LineExtensionAmount | //ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount |
| Credit Note Representation | Separate | Same |
Identical Invoice Header in UBL 2.1 vs UN/CEFACT CII
<!-- UBL 2.1 (Peppol BIS Billing 3.0) -->
<cbc:ID>INV-2026-00482</cbc:ID>
<cbc:IssueDate>2026-03-15</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<!-- UN/CEFACT CII (Factur-X / EN 16931) -->
<rsm:ExchangedDocument>
<ram:ID>INV-2026-00482</ram:ID>
<ram:TypeCode>380</ram:TypeCode>
<ram:IssueDateTime>
<udt:DateTimeString format="102">20260315</udt:DateTimeString>
</ram:IssueDateTime>
</rsm:ExchangedDocument>
When Should Engineering Teams Build UBL 2.1 vs CII First?
If your SaaS or ERP serves Belgium, the Netherlands, the Nordics, Australia/New Zealand, Singapore, or pan-European Peppol customers, build UBL 2.1 (Peppol BIS Billing 3.0) first — Peppol AS4 BIS Billing 3.0 strictly mandates UBL 2.1. If you serve French or German SMEs relying on human-readable PDF/A-3 attachments, also emit Factur-X CII (or map cleanly from one internal EN 16931 JSON canonical model into both UBL and CII).
Watch Out for Element Sequence Order in Both Schemas
Both UBL 2.1 and CII XSD schemas use strict <xsd:sequence> ordering. In CII, for instance, IncludedSupplyChainTradeLineItem MUST appear BEFORE ApplicableHeaderTradeAgreement inside SupplyChainTradeTransaction — the exact opposite of UBL 2.1 where header parties precede cac:InvoiceLine.
Frequently Asked Questions
Does Peppol BIS Billing 3.0 accept UN/CEFACT CII XML?
Standard Peppol BIS Billing 3.0 requires UBL 2.1 XML. While a few national profiles (such as Germany XRechnung or France PA networks) support CII over Peppol, UBL 2.1 is the universal Peppol billing syntax.
Why does CII put line items before header buyer/seller info?
UN/CEFACT CII's SupplyChainTradeTransaction XSD sequence places IncludedSupplyChainTradeLineItem first, followed by ApplicableHeaderTradeAgreement, Delivery, and Settlement.
Can CheckPeppol validate both UBL 2.1 and CII in the same tool?
Yes. CheckPeppol automatically detects whether your XML is UBL 2.1 or UN/CEFACT CII and executes all 25+ EN 16931 checks with syntax-aware XPaths.