All rules · pint-base · error
ibr-079
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
- Serializing every field in a template regardless of whether the source value was null
- Mapping an empty string from a database column into an element rather than skipping it
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-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.5 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-eu-1.1.1 | pint-base | error | billing/creditnote, billing/invoice |
| pint-ae-2026.3 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-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