Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:ShipToTradeParty.
The rule prevents multiple occurrences of this identifier element within the same ship-to party.
ram:ID appears more than once in the ship-to party. Remove the repeated occurrence so that this element appears no more than once.
- Find
ram:ShipToTradePartyin the XML. - Check its
ram:IDelements and remove any duplicates. - Regenerate the invoice and validate it again.
<ram:ShipToTradeParty> <ram:ID>1</ram:ID> <ram:ID>2</ram:ID> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:ID>1</ram:ID> </ram:ShipToTradeParty>
Technical details
The test limits the number of direct ram:ID elements in ram:ShipToTradeParty to at most one.
The rule applies to ram:ID within the ship-to party element ram:ShipToTradeParty.
rule/@context)assert/@test)