About this endpoint
What it does
Uploads an XML file and extracts its text content. The response returns the extracted text as a JSON object.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | XML file (.xml) uploaded as binary. |
| preserve_paragraphs | ENUM | No | Controls whether paragraph breaks are preserved when extracting text. Allowed values: true, false. Default: false. |
Response
Returns a JSON object with a data string field containing the extracted text content from the uploaded XML file.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | String | Yes | Extracted text content from the XML document. |