Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

XPath Tester

Test XPath expressions against your XML in seconds. Paste XML on the left, type an XPath expression, and every matching node appears below with its path and value — all processed in your browser, nothing is uploaded.

Your XML

XPath expression

Press Test or hit Enter. The expression is evaluated live as you type after a short pause.

Matches 0

#Node pathValue

Run a test to see matching nodes here.

How to use

  1. Paste your XML document into the box, or press Load sample XML to try the demo.
  2. Type an XPath expression, for example //book/title.
  3. Press Test or wait a moment — matching nodes list with path and value.
  4. Try the quick example buttons to learn common expression patterns.

Note: XML with namespaces needs local-name() style expressions, since this tester does not resolve namespace prefixes.

Tips

  • Use // to search the whole document, for example //title finds every title anywhere.
  • Filters go in square brackets: //book[price<20] keeps only cheap books.
  • Attributes use the at sign: //book[@category] finds books that have a category attribute.
  • text() selects the text inside an element; count(...) returns how many nodes match.