← All Tools

XPath Tester

Evaluate XPath expressions against XML data in real-time. 100% client-side.

XPath Expression

XML Input

Results

Enter an XPath expression and XML to see results.

XPath Quick Reference

ExpressionDescription
/root/childSelect child of root
//elementSelect all matching elements anywhere
@attributeSelect an attribute
[predicate]Filter nodes by condition
text()Select text content
*Wildcard — any element
|Union of two node sets
position()Position of context node
count()Count matching nodes
contains(str, sub)String contains test
✓ Copied!