What does the XRechnung validator do?
The XRechnung validator takes your XML file apart before anyone else does. The file is parsed safely first — with active XXE protection and no DTD or entity resolution. The XRechnung validator then detects the syntax: OASIS UBL 2.1 (Invoice) or UN/CEFACT CII (CrossIndustryInvoice). Both syntaxes are allowed in the XRechnung CIUS.
Next, the XRechnung validator reads the CustomizationID or GuidelineID to determine whether the file claims the XRechnung 3.0 CIUS. The validation layers then run in sequence: well-formedness, the XSD schema (for CII against the official schema via libxml2), the EN 16931 business rules with full arithmetic, and finally the BR-DE rules of the German CIUS — first of all BR-DE-15, the Leitweg-ID (BT-10), which is mandatory in B2G traffic.
Every result states which layers were actually executed. For UBL files the honest note applies: well-formedness and rules run in full, while the XSD layer is only available for CII in this build and is marked as skipped.