Php/docs/class.domxpath
来自菜鸟教程
(PHP 5, PHP 7)
简介
Supports XPath 1.0
类摘要
DOMXPath {
public
DOMDocument
$document
/* 方法 */
public __construct
( DOMDocument $doc
)
public evaluate
( string $expression
[, DOMNode $contextnode
[, bool $registerNodeNS
= true
]] ) : mixed
public query
( string $expression
[, DOMNode $contextnode
[, bool $registerNodeNS
= true
]] ) : DOMNodeList
public registerNamespace
( string $prefix
, string $namespaceURI
) : bool
public registerPhpFunctions
([ mixed $restrict
] ) : void
}
属性
document
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
- DOMXPath::registerPhpFunctions — Register PHP functions as XPath functions
/* 属性 */