Developer tools
XPath Tester
Inspect XML nodes and scalar XPath results before writing a query into code.
Processed locally. Your input and output are never uploaded.
Tool overview
How XPath Tester works
XPath Tester evaluates one local XPath expression and returns selected nodes or scalar values while blocking DTD and external entities. It keeps input and output separate, runs locally, and documents boundaries instead of making unsupported guarantees.
XML queries worth inspecting
- evaluates one local XPath expression and returns selected nodes or scalar values while blocking DTD and external entities. for a repeatable local workflow
- Review pasted or locally opened data before copying it
- Prepare output for a related PasteTidy tool
Evaluate one XPath expression
- Paste the source or open a supported local file.
- Choose the documented options and review the separate result.
- Copy or download only after checking the visible output.
Namespaces and result types
- XPath expression: Expression evaluated against the XML.
- Namespace mappings: Comma- or newline-separated prefix=URI pairs.
Select XML nodes locally
Before
<items><item id="1">Clean</item><item id="2">Format</item></items>
After
{
"expression": "//item/text()",
"resultType": "nodes",
"matches": [
{
"name": "#text",
"text": "Clean",
"xml": "Clean"
},
{
"name": "#text",
"text": "Format",
"xml": "Format"
}
]
}DTD, entities, and supported XPath
- DTD and external entity declarations are blocked before parsing.
- Large input is bounded by the documented local worker limits.
- Input, options, and output are not sent to analytics or placed in URLs.
Browse all developer tools tools โ
Questions
XPath Tester FAQ
Does XPath Tester upload my input?
No. Processing stays in the current browser tab or its local Web Worker.
Is the result authoritative?
No. Review the output and the documented limitations before using it in a production workflow.