XSD UN/CEFACT · D22B, uncoupled code lists

UN/CEFACT Cross Industry Invoice D22B

The D22B release of the CII schema, the syntax the French e-invoicing reform names for CII invoices, with uncoupled code lists.

About

D22B is a later release of the UN/CEFACT Cross Industry Invoice than the D16B subset of EN 16931, with more elements; Factur-X 1.09 and the French reform (XP Z12-012) build on it. In the uncoupled version, code values are plain text, so the Schematron rules check them, not the schema.

An invoice that passes D16B passes D22B too; the reverse is not always so.

Good to know

  • This entry checks the schema only. For the French rules, choose a French CII entry.
  • The schema files are those FNFE-MPE publishes with its validation artefacts (the main schema and the three data type schemas it imports; the code list schemas are not used by the uncoupled version).
  • The example is use case 13 of the FNFE-MPE examples for XP Z12-012 (Apache License 2.0).

Files

4 files · 334.7 KB
  • CrossIndustryInvoice_100pD22B.xsd main
    1.9 KB View Download
  • CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd
    40.4 KB View Download
  • CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd
    287 KB View Download
  • CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd
    5.5 KB View Download

The validator loads all of these with their folder structure, so includes and imports resolve as published.

Example document

fr-uc13-invoice-extended-cii.xml · 30.3 KB · valid against this schema

In CI and from code

The same schema by its name, cii-d22b, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema cii-d22b
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: cii-d22b
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=cii-d22b

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups