Extends DOMXpath to throw ErrorExceptions instead of raising errors.

 Methods

__construct()

__construct() 

inherited_from DOMXPath::__construct()

Adds an error to the stack of errors

addError(int $errno, string $errstr, string $errfile, int $errline) : void

Parameters

$errno

int

$errstr

string

$errfile

string

$errline

int

evaluate()

evaluate() 

inherited_from DOMXPath::evaluate()

query()

query() 

inherited_from DOMXPath::query()

Evaluates an XPath expression; throws an ErrorException instead of raising an error

queryWithErrorException(string $expression) : \DOMNodeList

Parameters

$expression

string

The XPath expression to evaluate.

Exceptions

\ErrorException

Returns

registerNamespace()

registerNamespace() 

inherited_from DOMXPath::registerNamespace()

registerPhpFunctions()

registerPhpFunctions() 

inherited_from DOMXPath::registerPhpFunctions()

 Properties

 

A stack of ErrorExceptions created via addError()

$errors : array