XML
ConceptsXML (Extensible Markup Language) is a markup format for representing structured data. DocLD can return extraction results in XML format as an alternative to JSON, enabling integration with systems that consume XML (e.g., legacy EDI, enterprise integrations).
XML in DocLD
| Use Case | Description |
|---|---|
| Extraction output | Extraction can return field values in XML structure |
| Schema mapping | Schema fields map to XML elements or attributes |
| Integration | Downstream systems that expect XML can consume extraction output directly |
XML output follows a predictable structure defined by your schema. Field names become element names; nested schema objects become nested elements.
When to Use XML
- Legacy systems — Integrate with systems that require XML input
- Enterprise standards — Meet organizational XML requirements for document exchange
- Custom pipelines — Transform XML with XSLT or other XML tools
JSON remains the default and recommended format for most DocLD integrations. XML is available when needed for compatibility.
Related Concepts
XML is an output format for extraction. Schema defines the structure of extracted data. Prebuilt schemas and custom schemas support XML output when configured.