If this gets attention I'd add another request: Please make the nodeset an array of REFERENCES to dom nodes, so we wan use Xpath to locate a node and then we can change it using DOM functions. It will make a sensible difference to implement, for example, Xupdate or modifications based on Xpath expressions.
Garland ----- Original Message ----- From: Dan Allen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 5:56 PM Subject: [PHP-DEV] relative xpath queries > 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, <[EMAIL PROTECTED]> > 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." > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 7/4/02 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php