DOMXPath->query

(no version information, might be only in CVS)

DOMXPath->query --  Evaluates the XPath expression in the given string

Description

DOMNodeList DOMXPath->query ( string expression [, DOMNode contextnode])

Returns a DOMNodeList containing all nodes matching expression. Any expression which do not return nodes will return an empty DOMNodeList.

The optional contextnode can be specified for doing relative XPath queries.