Search Results

  1. The DOMXPath class in PHP provides methods to query and manipulate XML documents using XPath expressions.

  2. 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...

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

  4. 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

  5. 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.

  6. 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.

  7. 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