The Dom\XPath class
(PHP 8 >= 8.4.0)
Introduction
Allows to use XPath 1.0 queries on HTML or XML documents.
This is the modern, spec-compliant equivalent of DOMXPath.
Class synopsis
final
class Dom\XPath
{
/* Properties */
/* Methods */
/* Not documented yet */
}Properties
documentThe document that is linked to this object.
registerNodeNamespacesWhen set to true, namespaces in the node are registered.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
