Hello everyone, I am usinng the following code to convert an xpath to a node. I was wondering if there is any way I can get the parent node of $node from the code below. Is there any other way that I can convert the xpath to the corresponding parent node?
<? // Code for loading $dom_doc comes here $xpath = new DOMXPath($dom_doc); $path = $xpath->query($path); $node = $path->item(0); // Get the first node always ?> Any help will be appreciated. Thanks - Sid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php