validate_ereporting_xml
Check FRR XML e-reporting against DGFiP schema, returning validation result to catch structural errors before submission.
Instructions
Validate a DGFiP e-reporting (Flux 10) FRR XML payload.
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 | |||