Catégories

XML路径提取器

使用XPath表达式从XML文档中提取值。非常适合从复杂的嵌套XML结构、API响应、RSS源和配置文件中提取特定数据。

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

Include the XPath expression used for each extraction

Include attributes for extracted elements

Treat multiple results as individual items instead of arrays

Maintain the original order of elements in the XML document

Enable namespace-aware XPath evaluation

Include empty elements and null values in the extraction results

Documentation de l'API

Point de terminaison de la requête

POST /fr/api/tools/xml-path-extractor

Paramètres de la requête

Nom du paramètre Type Requis Description
xmlInput textarea Oui -
xpathExpressions textarea Non 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 Oui -
includePaths checkbox Non Include the XPath expression used for each extraction
includeAttributes checkbox Non Include attributes for extracted elements
flattenArrays checkbox Non Treat multiple results as individual items instead of arrays
preserveOrder checkbox Non Maintain the original order of elements in the XML document
namespaceAware checkbox Non Enable namespace-aware XPath evaluation
nullValues checkbox Non Include empty elements and null values in the extraction results

Format de réponse

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

Documentation de MCP

Ajoutez cet outil à votre configuration de serveur 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"
    }
  }
}

Vous pouvez chaîner plusieurs outils, par ex.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 outils.

Si vous rencontrez des problèmes, veuillez nous contacter à [email protected]