ubl-creditnote:CreditNote MUST contain exactly one cbc:CreditNoteTypeCode.
ubl-creditnote:CreditNote
count(cbc:CreditNoteTypeCode) = 1