Validation rules

cvc-complex-type.2.3 — EN 16931 rule

Text appears directly inside an element that may only contain child elements — usually a stray character outside a tag or an accidentally unclosed element.

Rule
cvc-complex-type.2.3 — official EN 16931 / XRechnung rule
Severity
error
Detected by
tier 2 — XML schema (XSD)
Reachability
Only reachable when validating your own XML — normbill-generated documents cannot trigger it

normbill's serializer emits schema-valid XML by construction; this can only fire for XML submitted to /v1/invoices/validate.

How to fix it

Remove the loose text between the child elements; values belong inside leaf elements like cbc:ID, not between cac:* containers.

cvc-complex-type.2.3 auf Deutsch — was bedeutet der Fehler?

Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Direkt in einem Element steht Text, obwohl dort nur Kindelemente erlaubt sind — meist ein Zeichen außerhalb eines Tags oder ein versehentlich nicht geschlossenes Element.

So beheben Sie den Fehler

Entfernen Sie den losen Text zwischen den Kindelementen; Werte gehören in Blattelemente wie cbc:ID, nicht zwischen cac:*-Container.

Official sources

Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.

Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.