validate_xml
Diagnose schema errors by validating raw ISO 20022 E&I XML against bundled XSD schemas; returns validation status and detailed violation diagnostics.
Instructions
Validate raw ISO 20022 E&I XML against bundled XSD schemas.
Purpose: Validates an XML string against the official bundled XSD schema for the specified E&I message type, returning validation status and detailed schema violation diagnostics.
When to use:
When inspecting received or pre-generated ISO 20022 E&I XML before ingesting or routing.
When diagnosing schema structural, datatype, or constraint errors in message payloads.
When NOT to use:
Do NOT use for payment initiation (pain) or statement (camt.053) documents.
Do NOT pass unparseable binary content; requires valid XML text.
Behavioral transparency: Pure, in-memory schema validation using local bundled XSDs; zero network access or side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw ISO 20022 XML to validate. | |
| message_type | Yes | An E&I message type, e.g. 'camt.056.001.12' (see list_message_types). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||