XPath Tester
Run an XPath against your XML and see what it selects.
Runs in your browser — your data never leaves it
Paste, type, or drop a file. Runs as you type.
Output appears here as you type.
Worked example
/order/id
---
<order><id>7</id></order>1 match
[
"7"
]This example is one of XPath Tester's test cases — if the tool stopped producing this output, the build would fail.
Questions
- How do I use it?
- Put the XPath on the first line, then a line containing only ---, then your XML.
- Which XPath syntax is supported?
- A deliberate subset: /a/b, //b, /a/b[1], /a/@id, //b/text(). Predicates, axes, and functions are refused with a message — rather than silently returning nothing, which is the behaviour that makes these tools untrustworthy.