validate_cii_invoice
Validate CrossIndustryInvoice XML structural correctness by verifying required fields are present and non-empty.
Instructions
Validate a CII CrossIndustryInvoice XML string for structural correctness.
Performs structural validation by parsing the XML into an EN16931Invoice and checking that required core fields are present and non-empty.
Note: this tool does NOT validate against the normative CII D16B XSD schema. For full schema validation use a dedicated CII or ZUGFeRD validator.
On success returns {'valid': true, 'warnings': list[str]}. On failure returns {'valid': false, 'errors': list[str]}. On parse error returns {'valid': false, 'errors': ['XML parse error: ...']}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_string | Yes | CII CrossIndustryInvoice XML string to validate. Must contain a root rsm:CrossIndustryInvoice element. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||