I have a html page as string like below;
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
and I want to get value from that string via xPath. Xpath like below;
/html/body/p
Result has to be ;
This is a paragraph.