A UBL invoice should not include the DespatchDocumentReference DocumentTypeCode
/ubl:Invoice | /cn:CreditNote
not(cac:DespatchDocumentReference/cbc:DocumentTypeCode)