XML路径提取器
使用XPath表达式从XML文档中提取值。非常适合从复杂的嵌套XML结构、API响应、RSS源和配置文件中提取特定数据。
Documentación de la API
Punto final de la solicitud
POST /es/api/tools/xml-path-extractor
Parámetros de la solicitud
| Nombre del parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
| xmlInput | textarea | Sí | - |
| xpathExpressions | textarea | No | XPath expressions to extract values. Examples: //* - All elements //book/title - All book titles //person[@age>18] - Persons older than 18 Leave empty to extract all elements |
| outputFormat | select | Sí | - |
| includePaths | checkbox | No | Include the XPath expression used for each extraction |
| includeAttributes | checkbox | No | Include attributes for extracted elements |
| flattenArrays | checkbox | No | Treat multiple results as individual items instead of arrays |
| preserveOrder | checkbox | No | Maintain the original order of elements in the XML document |
| namespaceAware | checkbox | No | Enable namespace-aware XPath evaluation |
| nullValues | checkbox | No | Include empty elements and null values in the extraction results |
Formato de respuesta
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Texto:
Texto
Documentación de MCP
Agregue este herramienta a su configuración de servidor MCP:
{
"mcpServers": {
"elysiatools-xml-path-extractor": {
"name": "xml-path-extractor",
"description": "使用XPath表达式从XML文档中提取值。非常适合从复杂的嵌套XML结构、API响应、RSS源和配置文件中提取特定数据。",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=xml-path-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Puede encadenar múltiples herramientas, por ejemplo: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, máximo 20 herramientas.
Si encuentra algún problema, por favor, póngase en contacto con nosotros en [email protected]