Elysia Tools Docs
RU
Язык
ZHESPTRUFRDEEN
На сайт
Обзор инструментов

Format Conversion

Text to XML Converter

Convert various text formats to XML with customizable structure and formatting options

text· Текстовый результатОткрыть инструмент

Быстрый старт

Вызовите этот инструмент из своего кода на трёх языках.

cURL
curl -X POST 'https://api.elysiatools.com/ru/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

Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.

Endpoint

HTTP
POST https://api.elysiatools.com/ru/api/tools/text-to-xml

Параметры

ИмяТипОбязательныйОписание
textInputtextareaДа—
inputFormatselectДа—
rootElementtextНет—
rowElementtextНет—
includeDeclarationcheckboxНет—
includeAttributes

Интеграция MCP

Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.

Конфигурация сервера

Добавьте этот блок в конфигурацию вашего MCP-клиента:

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"
    }
  }
}

Получить список инструментов

После подключения к SSE-endpoint выведите список доступных инструментов:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Вызвать этот инструмент

Вызовите инструмент по его id; аргументы формируются из его параметров:

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
}
  }
}
Объединяйте несколько инструментов в одной сессии списком toolId через запятую, напр. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (макс. 20).
Обзор инструментовОткрыть инструмент

© 2026 Elysia Tools. Документация для разработчиков.

На сайтОбзор инструментов
checkbox
Нет
—
attributeNametextНет—
cdataSectionscheckboxНет—
escapeSpecialCharscheckboxНет—
prettyPrintcheckboxНет—
indentSizenumberНет—
showStatscheckboxНет—

Формат ответа

Текстовый результат

JSON
{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

Вопросы или проблемы? Свяжитесь с [email protected]