The DOMXPath class

(PHP 5, PHP 7)

Introduction

Supports XPath 1.0

Class synopsis

DOMXPath {
/* Properties */
public DOMDocument document ;
/* Methods */
public __construct ( DOMDocument $doc )
public evaluate ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = TRUE ]] ) : mixed
public query ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = TRUE ]] ) : DOMNodeList
public registerNamespace ( string $prefix , string $namespaceURI ) : bool
public registerPhpFunctions ([ mixed $restrict ] ) : void
}

Properties

document

Table of Contents