XPath Tester
XPath expression
Execute query
Example:
Get title
All links
div with class
all text
Element with id
All pictures
XML/HTML content
<html> <head> <title>示例页面</title> </head> <body> <div class="container"> <h1 id="main-title">欢迎</h1> <p class="intro">这是一个示例页面</p> <ul> <li><a href="/page1">链接1</a></li> <li><a href="/page2">链接2</a></li> <li><a href="/page3">链接3</a></li> </ul> <img src="image.jpg" alt="示例图片"/> </div> </body> </html>
Query results
Matching results
0
Click "Execute Query" to view the results
Tools
About
Privacy
Feedback
Guides