I've compiled and installed php 5.1.6 on linux. Whereas i was getting "undefined function" whenever i would use evaluate(). Now i get it to run but the count() XPATH function does not work properly. I simply don't get anything back.
DOMXPath->evaluate()(no version information, might be only in CVS) DOMXPath->evaluate() -- Evaluates the given XPath expression and returns a typed result if possible.说明class DOMXPath {mixed evaluate ( string expression [, DOMNode contextnode] ) } Executes the given XPath expression and returns a typed result if possible. 参数
返回值Returns a typed result if possible or a DOMNodeList containing all nodes matching the given XPath expression. 范例
add a note
User Contributed Notes
marwan dot zeineddine at gmail dot com
30-Oct-2006 11:50
I've compiled and installed php 5.1.6 on linux. Whereas i was getting "undefined function" whenever i would use evaluate(). Now i get it to run but the count() XPATH function does not work properly. I simply don't get anything back.
yuriucsal at NOSPAM dot yahoo dot com dot br
07-Mar-2005 04:55
this class can substitute the method evaluate while it is not validated. Made for Yuri Bastos and Joo Gilberto Magalhes.
ernest at vogelsinger dot at
24-Jan-2005 02:54
The DOMXPath::evaluate() method will not be available before v.5.1 (see bug database #31593). Only query() is available, which cannot evaluate all XPath expressions,such as count() or not().
| ||