Skip to content

Invoice Validation

Schema validation for invoice XML.

validate_xml_invoice_from_str

validate

Validate invoice XML

Validate invoice XML against the bundled UBL schema.

validate_xml_invoice_from_str(xml: &str, config: &Config) -> Result<(), XmlValidationError>
validate_xml_invoice_from_str(config: Config, xml: str) -> bool
FfiResult_bool fatoora_validate_xml_invoice_from_str(FfiConfig* config, const char* xml);

Behavior

Behavior

  • Validation uses the bundled UBL 2.1 schema under fatoora-core/assets.
  • Errors include schema parse failures, XML parse failures, and schema validation errors.

See also: Invoice Validation Guide