Format Conversion
Convert XML data to CSV format with customizable parsing options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/xml-to-csv' \
-H 'Content-Type: application/json' \
-d '{"xmlInput":"Enter XML data...","delimiter":",","includeHeaders":true,"quoteFields":true,"nestedHandling":"flatten","flattenAttributes":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/xml-to-csv| Name | Type | Required | Description |
|---|---|---|---|
| xmlInput | textarea | Yes | — |
| delimiter | text | No | — |
| includeHeaders | checkbox | No | — |
| quoteFields | checkbox | No | — |
| nestedHandling | select | No | — |
| flattenAttributes |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-xml-to-csv": {
"name": "xml-to-csv",
"description": "Convert XML data to CSV format with customizable parsing options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xml-to-csv",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "xml-to-csv",
"arguments": {
"xmlInput": "Enter XML data...",
"delimiter": ",",
"includeHeaders": true,
"quoteFields": true,
"nestedHandling": "flatten",
"flattenAttributes": true
}
}
}Questions or issues? Contact [email protected]
| checkbox |
| No |
| — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}