XPath Tester
Test XPath expressions on XML documents and view matched results.
Enter namespace prefix and URI pairs separated by spaces (e.g., xmlns:xs=http://www.w3.org/2001/XMLSchema)
XPath Guide
What is XPath?
XPath (XML Path Language) is a query language for selecting nodes from XML documents. It allows you to navigate through elements and attributes similar to file system paths.
Common Axes
/- Root (/) - Selects the root element of the document//- Descendant (//) - Selects matching elements anywhere in the document@attr- Attribute (@) - Selects attributes of elements[predicate]- Predicate ([ ]) - Filters nodes that match a condition*- Wildcard (*) - Selects all elements|- Union (|) - Combines multiple paths
All XPath evaluation is performed in your browser. No data is sent to any server.