src/Data/Xml.php
public function xPathQuery($pQuery, $pNode = NULL)
    {
        $queryResult = $this->_getXPath()->query($pQuery, $pNode);
        if ($queryResult === false) {
            throw new Exception("Invalid XPath request");
        }

        return $queryResult;
    }
public function xPathQuery($pQuery, $pNode = NULL)
    {
        $queryResult = $this->_getXPath()->query($pQuery, $pNode);
        if ($queryResult === false) {
            throw new Exception("Invalid XPath request");
        }

        return $queryResult;
    }
public function xPathQuery ( $ pQuery , $ pNode = NULL ) { $ queryResult = $ this -> _getXPath ( ) -> query ( $ pQuery , $ pNode ) ; if ( $ queryResult === false ) { throw new Exception ( "Invalid XPath request" ) ; } return $ queryResult ; }
Execute an XPath query.

@param string $pQuery XPath query
@return mixed
Execute an XPath query .