Is this function working? Test program:
$dom = new domDocument(); $dom->load("test.xml"); $node = $dom->getElementById("id1"); print_r($node); Test file: <?xml version="1.0" encoding="utf-8"?> <test> <el1 id="id1"/> <el2 id="id2"/> </test> It seems to me that always a emty object is returned? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php