An Invoice shall have an Invoice type code (ibt-003).
/ubl:Invoice | /cn:CreditNote
(cbc:InvoiceTypeCode) !='' or (cbc:CreditNoteTypeCode) !=''