Re: [PHP-XML-DEV] DomXPath extension

[email protected] (Adam Maccabee Trachtenberg) Sat, 24 Jul 2004 11:43:14 -0400 (EDT)
Newsgroups php.xml.dev
Message-ID <[email protected]>
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

-- 
[email protected]
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!