br__validate_nfe_xml
Validate NF-e/NFC-e XML (modelo 55/65, schema 4.00) against the official XSD schema. Automatically selects unsigned or signed schema based on presence of digital signature.
Instructions
Validate an NF-e/NFC-e XML (modelo 55/65, schema 4.00) against the bundled PL_010d XSD.
NFeXSDValidator selects the schema automatically: documents without a
<ds:Signature> are validated against the unsigned derivative; signed
documents (produced by br__sign_nfe) are validated against the
unmodified official schema, which requires <ds:Signature>.
Returns a dict with valid, errors, warnings, and schema_version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | No | Raw NF-e/NFC-e XML string. Provide either xml_content or xml_base64. | |
| xml_base64 | No | Base64-encoded NF-e/NFC-e XML bytes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||