relative xpath queries

From: Date: Tue, 16 Jul 2002 20:56:57 +0000
Subject: relative xpath queries
Groups: php.dev 
Request: Send a blank email to php-dev+get-85968@lists.php.net to get a copy of this message
XPath is crippled without the ability to do relative xpath queries. The interface is already provided by the libxml2 engine, it is just a matter of adding the option to xpath_eval(). If you are working recursively in an xml document (which you are always doing) and you need to run an xpath query from the current node, the only way to do it now is to write a function (which I did) to work back up the tree from the current node to determine the location path and then append that onto the beginning of the query and run it. However, this is very inefficient and shows incompleteness of the domxml xpath implementation. Any chance this could get attention? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <dan@mojavelinux.com> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "I used to herd dairy cows. Now I herd linux users. Apart from the isolation, I think I preferred the cows. They were better in conversation, easier to milk, and if they annoyed me enough, I could shoot them and eat them." - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

« previous php.dev (#85968) next »