validate_ereporting_xml
Validate DGFiP e-reporting XML against the official XSD schema to catch structural errors before submission.
Instructions
Validate a DGFiP e-reporting (Flux 10) FRR XML payload.
Scope: XSD schema validation only, no business-rule checks. See README "Scope" section.
Checks the XML against the DGFiP Spécifications Externes v3.2 ereporting.xsd. Returns validation result with errors if any. Use this before submitting to catch structural problems early.
Validation levels (in order of preference):
xsd — full schema validation (requires lxml)
wellformedness — basic XML parsing only (stdlib fallback)
none — XSD files not found on disk
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | Yes | FRR XML content to validate. Must be a complete Report document per DGFiP Spécifications Externes v3.2 ereporting.xsd. Full XSD validation requires lxml (`pip install lxml`); otherwise well-formedness is checked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||