br__validate_cte_xml
Validate CT-e XML (modelo 57, schema 4.00) against the bundled PL_CTe_400 XSD. Automatically handles signed and unsigned documents, returning validity status, errors, warnings, and schema version.
Instructions
Validate a CT-e XML (modelo 57, schema 4.00) against the bundled PL_CTe_400 XSD.
CTeXSDValidator selects the schema automatically: documents without a
<ds:Signature> are validated against the unsigned derivative; signed
documents 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_base64 | No | Base64-encoded CT-e XML bytes. | |
| xml_content | No | Raw CT-e XML string. Provide either xml_content or xml_base64. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||