Validation rules
cvc-elt.1.a — EN 16931 rule
The root element's declaration cannot be found — the document element has the wrong name or namespace, so it is not recognized as a UBL invoice at all.
- Rule
cvc-elt.1.a— 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
Use <Invoice> with the default namespace "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" (or the CreditNote-2 equivalent) as the document element.
cvc-elt.1.a auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Die Deklaration des Wurzelelements wird nicht gefunden — Name oder Namensraum des Dokumentelements sind falsch, das Dokument wird gar nicht als UBL-Rechnung erkannt.
So beheben Sie den Fehler
Verwenden Sie <Invoice> mit dem Default-Namensraum "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" (bzw. das CreditNote-2-Pendant) als Dokumentelement.
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
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.