public function query($path)
    {
        $this->initializeXPath();

        if ($path) {
            return $this->xpath->query($path);
        }
        return false;
    }
public function query($path)
    {
        $this->initializeXPath();

        if ($path) {
            return $this->xpath->query($path);
        }
        return false;
    }
public function query ( $ path ) { $ this -> initializeXPath ( ) ; if ( $ path ) { return $ this -> xpath -> query ( $ path ) ; } return false ; }
Main XPath query method.

@param string $path The xpath query to run on the current DOM

@return mixed
Main XPath query method .