xPath: Why does the following not work?

ziad83

New Member
Why does the following not work?:\[code\]$dom = new DOMDocument();@$dom->load('http://tinyurl.com/35cs96n');$xpath = new DOMXPath($dom);$entries = $xpath->query('//table[@id="SubCategory_SubCategoryDataList"]/a/@href');foreach ($entries as $entry) { echo $entry->nodeValue.'<br>';}\[/code\]
 
Back
Top