how can a start a second and third XPatch query in an XPatch query?
For example
CodePad = http://codepad.viper-7.com/ZhMNGw
HTML CODE
<div class="entries">
<h3 class="headline" style="position: relative; cursor: pointer;">
<div>
<a class="selink" href="/tste/?sd=28726585">
<span class="date"> 10:15 </span>
<span class="titel">THE TITLE<span class="subtitel">some subtitle</span>
</span>
</a>
</div>
</h3>
</div>
<div class="entries">
<h3 class="headline" style="position: relative; cursor: pointer;">
<div>
<a class="selink" href="/tste/?sd=287265995">
<span class="date"> 10:16 </span>
<span class="titel">THE TITLE 2<span class="subtitel">some subtitle</span>
</span>
</a>
</div>
</h3>
</div>
PHP
libxml_use_internal_errors(true);
$doc = new DOMDocument;
$doc->preserveWhiteSpace = false;
$doc->strictErrorChecking = false;
$doc->recover = true;
$doc->loadHTMLFile('http://domain.com/startpage.php');
$xpath = new DOMXPath($doc);
$query = "//div[@class='entries']"; // <- QUERY ONE
$entries = $xpath->query($query);
$list = array();
$count = 0;
foreach ($entries as $key => $value)
{
$list[$count] = array();
// get the link <- QUERY TWO
$list[$count]['url'] = $xpath->query("//a[@class='selink']");
// get the title but NOT the subtitle <- QUERY THREE
$list[$count]['title'] = $xpath->query("//span[@class='titel']");
$count++;
}
print_r($list);