XPath 1.0 Tester with Namespaces
Query inert XML using native browser XPath 1.0, namespace mappings and node, value or path results without fetching resources.
Enabling local controls…
1. Enter XML and XPath
Parsed and queried in this browser only. No upload or storage. Runs only when you press Run.
Native browser XPath 1.0 only. Give default namespaces a custom prefix; unprefixed names match only nodes without a namespace.
Limits: 100 KiB XML, 2,000 nodes, 100 levels and 1,024 XPath characters. Native evaluation cannot be interrupted; avoid costly expressions.
2. Results
Paste XML and XPath, or load the sample, then press Run.
How to use this tool
Enter XML and XPath, map prefixes to namespace URIs, then run. Compare Nodes, Values and Paths. Unprefixed XPath names do not select elements in a default namespace; assign a prefix explicitly.
When not to use it
XPath 1.0 only, not XPath 2/3 or XSLT. DTD, entity declarations and stylesheet instructions are rejected. Well-formed XML and query matches do not prove schema validity or safety.
Read the guide →