All rules · pint-eu · error

PEPPOL-EN16931-R008

The document must not contain empty elements.

Reviewed

Why this rule exists

An empty element asserts that a value exists while providing none. That is worse than omitting the element, because downstream systems treat presence as meaning.

Why it usually happens

How to fix it

Configure the serializer to omit elements whose value is null or empty, rather than emitting empty tags.

Wrong
<cbc:Note></cbc:Note>
Right
<!-- omit the element entirely when there is no note -->

The official rule

Document MUST not contain empty elements.

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

false()

Applied to nodes matching //*[not(*) and not(normalize-space())]

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-eu-1.1.1pint-euerrorbilling/creditnote, billing/invoice

Check your own invoice

Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.

Open the validator