A credit note MUST contain VAT category details unless VAT total amount is omitted.
/ubl:CreditNote
(//cac:TaxScheme/cbc:ID = 'VAT') or not(/ubl:CreditNote/cac:TaxTotal/cbc:TaxAmount)