Re: DomXPath extension
| From: | Adam Maccabee Trachtenberg | Date: | Sat, 24 Jul 2004 15:43:14 +0000 |
| Subject: | Re: DomXPath extension | ||
| References: | 1 2 3 4 5 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-432@lists.php.net to get a copy of this message | ||
On Sat, 24 Jul 2004, Jason Barnett wrote:
> To be honest I've never written any extensions or PHP source before
> so this will be fun to try, but obviously whatever I come up with is
> not going to be optimal. But I want to see this get done so I'll
> give it my best shot... and let you all make suggestions or just
> improve it yourselves.
I looked at the source code last night and it doesn't look too
tough. The hardest part is also groking the libxml2 functions.
However, all I think you really need to do is take the original
query() method and modify the part that grabs the results from libxml2
and turns it into a string or number instead of a DOMNodeList.
-adam
--
adam@trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!