The DOMXPath class

(PHP 5, PHP 7, PHP 8)

Вступ

Supports XPath 1.0

Короткий огляд класу

class DOMXPath {
/* Властивості */
public readonly DOMDocument $document;
/* Методи */
public __construct(DOMDocument $document, bool $registerNodeNS = true)
public evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed
public query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed
public registerNamespace(string $prefix, string $namespace): bool
}

Властивості

document

registerNodeNamespaces

When set to true, namespaces in the node are registered.

Журнал змін

Версія Опис
8.0.0 The registerNodeNamespaces property has been added.

Зміст