array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'class.dom-xpath.php', 1 => 'Dom\\XPath', 2 => 'The Dom\\XPath class', ), 'up' => array ( 0 => 'book.dom.php', 1 => 'DOM', ), 'prev' => array ( 0 => 'class.dom-xmldocument.php', 1 => 'Dom\\XMLDocument', ), 'next' => array ( 0 => 'ref.dom.php', 1 => 'DOM Функції', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/dom-xpath.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

The Dom\XPath class

(PHP 8 >= 8.4.0)

Вступ

Allows to use XPath 1.0 queries on HTML or XML documents.

This is the modern, spec-compliant equivalent of DOMXPath.

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

final class Dom\XPath {
/* Властивості */
public readonly Dom\Document $document;
public bool $registerNodeNamespaces;
/* Методи */
/* Not documented yet */
}

Властивості

document
The document that is linked to this object.
registerNodeNamespaces
When set to true, namespaces in the node are registered.