分类

文本转XML转换器

将各种文本格式转换为XML,支持自定义结构和格式化选项

API 文档

请求端点

POST /zh/api/tools/text-to-xml

请求参数

参数名 类型 必填 描述
textInput textarea -
inputFormat select -
rootElement text -
rowElement text -
includeDeclaration checkbox -
includeAttributes checkbox -
attributeName text -
cdataSections checkbox -
escapeSpecialChars checkbox -
prettyPrint checkbox -
indentSize number -
showStats checkbox -

响应格式

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

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-text-to-xml": {
      "name": "text-to-xml",
      "description": "将各种文本格式转换为XML,支持自定义结构和格式化选项",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-to-xml",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

如果遇见问题,请联系我们:[email protected]