XPath Playground
Input
<html> <head> <title>My page</title> </head> <body> <h2>Welcome to my <a href="#">page</a></h2> <p>This is the first paragraph</p>. <!-- this is the end --> </body> </html>
XPath
Result