|
The DOMXPath classIntroductionAllows to use XPath 1.0 queries on HTML or XML documents. Class synopsis
DOMXPath
/* Properties */
public
readonly
DOMDocument
$document;
public
bool
$registerNodeNamespaces;
/* Methods */
public __construct(DOMDocument
$document, bool $registerNodeNS = true)public mixed evaluate(string
$expression, DOMNodenull $contextNode = null, bool $registerNodeNS = true)public mixed query(string
$expression, DOMNodenull $contextNode = null, bool $registerNodeNS = true)public static string quote(string
$str)public bool registerNamespace(string
$prefix, string $namespace)public void registerPhpFunctionNS(string
$namespaceURI, string $name, callable $callable)public void registerPhpFunctions(stringarraynull
$restrict = null)Properties
Changelog
|