DOM
DOMXPath::__construct
DOM
PHP Manual
The DOMXPath class
Class synopsis
DOMXPath
class
DOMXPath
{
/* Properties */
public
DOMDocument
$document
;
/* Methods */
__construct
(
DOMDocument
$doc
)
mixed
evaluate
(
string
$expression
[,
DOMNode
$contextnode
] )
DOMNodeList
query
(
string
$expression
[,
DOMNode
$contextnode
] )
bool
registerNamespace
(
string
$prefix
,
string
$namespaceURI
)
}
Properties
document
Prop description
Table of Contents
DOMXPath::__construct
— Creates a new DOMXPath object
DOMXPath::evaluate
— Evaluates the given XPath expression and returns a typed result if possible.
DOMXPath::query
— Evaluates the given XPath expression
DOMXPath::registerNamespace
— Registers the namespace with the DOMXPath object
DOM
DOMXPath::__construct
DOM
PHP Manual