Habari\HTMLDoc::query PHP Method

query() public method

Pass a query on to the XPath query method
public query ( string $expression, DomNode $contextnode = null, boolean $registerNodeNS = true ) : HTMLNodes
$expression string An XPath expression
$contextnode DomNode The context of the query, by default, the root node
$registerNodeNS boolean true by default, false to disable the automatic registration of the context node
return HTMLNodes A list of qualifying nodes
    public function query($expression, \DomNode $contextnode = null, $registerNodeNS = true)
    {
        return new HTMLNodes($this->xp->query($expression, $contextnode, $registerNodeNS));
    }