The XPath expression tester evaluates XPath 1.0 queries against XML input using the browser's native DOM parser. Paste your XML and expression to see matching nodes, count, and extracted text values.

| Quick expressions:

XPath Quick Reference

//tagany tag anywhere
/root/childdirect child path
@attrattribute value
tag[1]first element
[@id='x']attribute predicate
count(//tag)count elements
text()text content
parent::*parent element
*[last()]last element