Element 'ram:Name' must occur exactly 1 times.
ram:Name does not occur exactly once within ram:InvoiceeTradeParty. The element is missing or occurs more than once.
The invoicee must be represented in the XML structure by exactly one ram:Name element. Both a missing element and multiple occurrences violate this requirement.
ram:Name is missing from the invoicee or appears more than once. With exactly one such element, the invoice can be validated again.
- Locate
ram:InvoiceeTradeParty. - Ensure it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it again.
<ram:InvoiceeTradeParty/>
<ram:InvoiceeTradeParty> <ram:Name>Example</ram:Name> </ram:InvoiceeTradeParty>
Technical details
The test counts the direct ram:Name elements of ram:InvoiceeTradeParty and requires exactly one occurrence.
The rule applies to ram:Name within ram:InvoiceeTradeParty.
rule/@context)assert/@test)