I need to get some part of html pages using php XPath query (sorry im new to XPath).
example html page
<html><head>blah lines</head><body>
<div id="mytable">
<table><tr><td>table cell value</td></tr></table>
</div>
<body><html>
is there any way to get div contents of above example along with html tags using XPath