XPath and CSS selector tester
Try an XPath expression or a CSS selector on HTML or XML and see every match.
Document and query
Read it as
Matches
What it does
The tester parses your HTML or XML with the browser’s own parser and runs an XPath expression or a CSS selector on it. It lists every match and tells you plainly when the query is invalid.
How to use it
- 1Paste HTML or XML.
- 2Pick XPath or CSS and write the query.
- 3Read the matches.
Questions
Is my document uploaded?
No. It is parsed on your device.
Why does my XPath find nothing in XML?
If the XML has a default namespace, name tests need a prefix. Try local-name().
Which XPath version?
The one your browser supports, which is XPath 1.0.
AD320 × 100