Document MUST not contain empty elements. (still status warning)
At least one XML element with no child elements contains no text or only whitespace. Such empty elements are not permitted in the document.
An empty element does not convey a value. Removing unused elements or providing a value prevents empty information from appearing in the document.
The document contains at least one empty XML element. You can adjust the invoice so that it no longer contains empty elements.
- Find elements in the XML that have no child elements and contain no text.
- Remove unused empty elements or provide the missing content.
- Generate the invoice again and validate it once more.
Technical details
The test fails for each element with no child elements whose normalized text content is empty.
The rule applies to all XML elements in the document that have no child elements.
rule/@context)assert/@test)