Format Conversion
Text to XML Converter
Convert various text formats to XML with customizable structure and formatting options
text· TextergebnisWerkzeug öffnen
Schnellstart
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
cURL
curl -X POST 'https://api.elysiatools.com/de/api/tools/text-to-xml' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter your text data to convert to XML:\nname,age,city\nJohn,25,New York\nJane,30,London\n\nOr paste JSON, key-value pairs, or other formats...","inputFormat":"auto","rootElement":"root","rowElement":"item","includeDeclaration":true,"includeAttributes":false,"attributeName":"value","cdataSections":false,"escapeSpecialChars":true,"prettyPrint":true,"indentSize":"2","showStats":false}'API-Referenz
Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
Endpunkt
HTTP
POST https://api.elysiatools.com/de/api/tools/text-to-xmlParameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| textInput | textarea | Ja | — |
| inputFormat | select | Ja | — |
| rootElement | text | Nein | — |
| rowElement | text | Nein | — |
| includeDeclaration | checkbox | Nein | — |
| includeAttributes |
MCP-Integration
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Serverkonfiguration
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
mcp.json
{
"mcpServers": {
"elysiatools-text-to-xml": {
"name": "text-to-xml",
"description": "Convert various text formats to XML with customizable structure and formatting options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-to-xml",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Verfügbare Werkzeuge auflisten
Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Dieses Werkzeug aufrufen
Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-to-xml",
"arguments": {
"textInput": "Enter your text data to convert to XML:\nname,age,city\nJohn,25,New York\nJane,30,London\n\nOr paste JSON, key-value pairs, or other formats...",
"inputFormat": "auto",
"rootElement": "root",
"rowElement": "item",
"includeDeclaration": true,
"includeAttributes": false,
"attributeName": "value",
"cdataSections": false,
"escapeSpecialChars": true,
"prettyPrint": true,
"indentSize": "2",
"showStats": false
}
}
}