Peppol BIS Billing 3.0.21 · UBL

UBL-DT-06: Binary object elements shall contain the mime code attribute

Peppol BIS Billing 3.0.21 · UBL

fatalschema

Original rule text

[UBL-DT-06]-Binary object elements shall contain the mime code attribute

Stored validation assertion
(@mimeCode)

UBL-DT-06 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

The rule requires that every XML element whose name ends with BinaryObject carries a mimeCode attribute. The test checks only for the presence of that attribute, not its value. A document fails validation if any such element is missing the attribute. This is a fatal rule, so the document is rejected.

How to fix

Add a mimeCode attribute to each element named like BinaryObject. The rule does not validate the attribute's value, so any present attribute satisfies it; set it to the appropriate MIME type for the binary content if known.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to UBL-DT-06.

Validate an invoice against these rules · All release changes