Document MUST not contain empty elements. (still status warning)
The XML contains at least one element without child elements whose content is empty or consists only of whitespace. The check reports this as a warning.
Empty elements contain no usable information and should not be part of the invoice document.
At least one XML element in the invoice is empty or contains only whitespace. You can resolve the message by removing the element or providing suitable content.
- Look in the XML for elements with no content and no child elements.
- Remove empty elements that are not needed, or fill them with a suitable value.
- Generate the invoice again and validate it once more.
Technical details
The context selects every element that has no child elements and whose normalized content is empty. The test expression false always fails.
The rule applies to all XML elements without child elements whose content is empty or consists only of whitespace.
rule/@context)assert/@test)