Class DOMXPath

Summary

Fully Qualified Name: Zend\Dom\DOMXPath
Extends: DOMXPath

Description

Extends DOMXpath to throw ErrorExceptions instead of raising errors.

Methods

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

Method Details

addError()

Adds an error to the stack of errors

Parameter Name Type Description
$errno int
$errstr string
$errfile string
$errline int

Returns: void

queryWithErrorException()

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

Parameter Name Type Description
$expression string The
$contextNode \DOMNode

Returns: \DOMNodeList

Top