Developer Tools

XPath Tester

Paste an XML document and an XPath expression, and see what matches right away

<?xml version="1.0" encoding="ISO-8859-1"?>

<bookstore>

	<book>
	 <title lang="en">Harry Potter</title>
	 <author>J K. Rowling</author>
	 <year>2005</year>
	 <price>29.99</price>
	</book>

	<book>
	 <title lang="zh">任霏博客</title>
	 <author>任霏</author>
	 <year>2022</year>
	 <price>9.99</price>
	</book>

</bookstore>
XPath expression