Re: relative xpath queries
| From: | Garland foster | Date: | Tue, 16 Jul 2002 21:13:37 +0000 |
| Subject: | Re: relative xpath queries | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85969@lists.php.net to get a copy of this message | ||
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 <dan@mojavelinux.com>
To: <php-dev@lists.php.net>
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, <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."
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> --
> 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