Search Results
The DOMXPath class in PHP provides methods to query and manipulate XML documents using XPath expressions.
- DOMNamedNodeMap
The DOMNamedNodeMap class Properties ¶ length The number of...
- DOMAttr
The DOMAttr class
- DOMDocumentFragment
The DOMDocumentFragment class
- PHP: Dom\XPath
The Dom\XPath class Introduction ¶ Allows to use XPath 1.0...
- DOMNamedNodeMap
Feb 11, 2013 · Possible Duplicate: XPath: How to match attributes that contain a certain string I'm trying to parse some html with PHP DOM Xpath, but I'm having problems searching for a class name when the el...
Introduction Allows to use XPath 1.0 queries on HTML or XML documents.
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
The Dom\XPath class Introduction ¶ Allows to use XPath 1.0 queries on HTML or XML documents. This is the modern, spec-compliant equivalent of DOMXPath.
Aug 15, 2025 · DOMXPath is a PHP class that extends the capabilities of the Document Object Model (DOM) by allowing developers to perform XPath queries on XML documents. XPath, short for XML Path Language, is a query language designed for selecting nodes from XML documents.
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
