SimpleSAML_XML_Shib13_AuthnResponse::doXPathQuery PHP Method

doXPathQuery() private method

This function runs an xPath query on this authentication response.
private doXPathQuery ( $query, $node = NULL )
$query The query which should be run.
$node The node which this query is relative to. If this node is NULL (the default) then the query will be relative to the root of the response.
    private function doXPathQuery($query, $node = NULL)
    {
        assert('is_string($query)');
        assert('$this->dom instanceof DOMDocument');
        if ($node === NULL) {
            $node = $this->dom->documentElement;
        }
        assert('$node instanceof DOMNode');
        $xPath = new DOMXpath($this->dom);
        $xPath->registerNamespace('shibp', self::SHIB_PROTOCOL_NS);
        $xPath->registerNamespace('shib', self::SHIB_ASSERT_NS);
        return $xPath->query($query, $node);
    }