| Fully Qualified Name: | Laminas\Dom\DOMXPath |
| Extends: | DOMXPath |
Extends DOMXpath to throw ErrorExceptions instead of raising errors.
| Name | Description | Defined By |
|---|---|---|
| addError() | Adds an error to the stack of errors | DOMXPath |
| queryWithErrorException() | Evaluates an XPath expression; throws an ErrorException instead of raising an error | DOMXPath |
Adds an error to the stack of errors
| Parameter Name | Type | Description |
|---|---|---|
| $errno | int | |
| $errstr | string | |
| $errfile | string | |
| $errline | int |
Returns: void
Evaluates an XPath expression; throws an ErrorException instead of raising an error
| Parameter Name | Type | Description |
|---|---|---|
| $expression | string | The |
| $contextNode | \DOMNode |
Returns: \DOMNodeList