CFDI40146

El campo RFC del receptor debe contener el valor "XAXX010101000".

In English A receiver named PUBLICO EN GENERAL must have the generic RFC XAXX010101000.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/cfdi:Comprobante/cfdi:Receptor
Test
not(normalize-space(@Nombre) = 'PUBLICO EN GENERAL') or $rfc = 'XAXX010101000'

Checked with CFDI 4.0