Zend\Dom\DOMXPath
Extends DOMXpath to throw ErrorExceptions instead of raising errors.
Synopsis
class DOMXPath
extends DOMXPath
{
- // members
- protected array $errors;
- // Inherited members from DOMXPath
- public $document;
- // methods
- public DOMNodeList queryWithErrorException()
- public void addError()
- // Inherited methods from DOMXPath
- public void __construct()
- public mixed evaluate()
- public DOMNodeList query()
- public bool registerNamespace()
- public void registerPhpFunctions()
Hierarchy
Extends
Members
protected
- $errors
—
array
A stack of ErrorExceptions created via addError()
public
- $document — DOMDocument
Methods
public
- addError() — Adds an error to the stack of errors
- queryWithErrorException() — Evaluates an XPath expression; throws an ErrorException instead of raising an error
Inherited from DOMXPath
public
- evaluate() — Evaluates the given XPath expression and returns a typed result if possible
- query() — Evaluates the given XPath expression
- registerNamespace() — Registers the namespace with the DOMXPath object
- registerPhpFunctions() — Register PHP functions as XPath functions