DOMXPath->query()
(no version information, might be only in CVS)
DOMXPath->query() -- Evaluates the given XPath expressionDescription
class DOMXPath {DOMNodeList query ( string expression [, DOMNode contextnode] )
}
Executes the given XPath expression.
Parameters
- expression
-
The XPath expression to execute.
- contextnode
-
The optional contextnode can be specified for doing relative XPath queries. By default, the queries are relative to the root element.
Return Values
Returns a DOMNodeList containing all nodes matching the given XPath expression. Any expression which do not return nodes will return an empty DOMNodeList.
