XML Path Extractor
Extract values from XML documents using XPath expressions. Perfect for extracting specific data from complex nested XML structures, API responses, RSS feeds, and configuration files.
API Documentation
Request Endpoint
POST /en/api/tools/xml-path-extractor
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| xmlInput | textarea | Yes | - |
| 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 | Yes | - |
| 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 |
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-xml-path-extractor": {
"name": "xml-path-extractor",
"description": "Extract values from XML documents using XPath expressions. Perfect for extracting specific data from complex nested XML structures, API responses, RSS feeds, and configuration files.",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=xml-path-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]