Re: [PHP] extending Xpath

2008-05-01 Thread Jim Lucas
Andrew Mason wrote: Hi, I was wondering if it was possible to extend the DOMXpath object in a similar fashion to the DomDocument. I was hoping to write a wrapper to provide an interface similar to prepared statements in the db libraries for the xpath processor. $xpath = new myxpath(); $stmt =

[PHP] extending Xpath

2008-05-01 Thread Andrew Mason
Hi, I was wondering if it was possible to extend the DOMXpath object in a similar fashion to the DomDocument. I was hoping to write a wrapper to provide an interface similar to prepared statements in the db libraries for the xpath processor. $xpath = new myxpath(); $stmt = $xpath->prepare("/foo