DOMXPath::registerNamespace

(PHP 5, PHP 7) Registers the namespace with the DOMXPath object public bool DOMXPath::registerNamespace ( string $prefix, string $namespaceURI ) Registers the namespaceURI and prefix with the DOMXPath object. Parameters: prefix The prefix. namespaceURI The URI of the namespace. Returns: Returns TRUE on succes

DOMText::__construct

(PHP 5, PHP 7) Creates a new DOMText object public DOMText::__construct ([ string $value ] ) Creates a new DOMText object. Parameters: value The value of the text node. If not supplied an empty text node is created. Examples: Creating a new DOMText <?php $dom = new DOMDocument('1.0', 'iso-8859-1');

DOMXPath::evaluate

(PHP 5 >= 5.1.0, PHP 7) Evaluates the given XPath expression and returns a typed result if possible public mixed DOMXPath::evaluate ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = true ]] ) Executes the given XPath expression and returns a typed result if possible. Parameters: expression The XPath expression to execute.

DOMText::splitText

(PHP 5, PHP 7) Breaks this node into two nodes at the specified offset public DOMText DOMText::splitText ( int $offset ) Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. After being split, this node will contain all the content up to the offset. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal

DOMText::isWhitespaceInElementContent

(PHP 5, PHP 7) Indicates whether this text node contains whitespace public bool DOMText::isWhitespaceInElementContent ( void ) Indicates whether this text node contains only whitespace or it is empty. The text node is determined to contain whitespace in element content during the load of the document. Returns: Returns TRUE if node contains zero or more whitespace characters and nothing else. Ret

DOMXPath::__construct

(PHP 5, PHP 7) Creates a new DOMXPath object public DOMXPath::__construct ( DOMDocument $doc ) Creates a new DOMXPath object. Parameters: doc The DOMDocument associated with the DOMXPath.

DOMProcessingInstruction::__construct

(PHP 5, PHP 7) Creates a new DOMProcessingInstruction object public DOMProcessingInstruction::__construct ( string $name [, string $value ] ) Creates a new DOMProcessingInstruction object. This object is read only. It may be appended to a document, but additional nodes may not be appended to this node until the node is associated with a document. To create a writeable node, use DOMDocument::createProcessingInstruction.

DOMNode::removeChild

(PHP 5, PHP 7) Removes child from list of children public DOMNode DOMNode::removeChild ( DOMNode $oldnode ) This functions removes a child from a list of children. Parameters: oldnode The removed child. Returns: If the child could be removed the function returns the old child. Exception: Raised if this node is

DOMNode::replaceChild

(PHP 5, PHP 7) Replaces a child public DOMNode DOMNode::replaceChild ( DOMNode $newnode, DOMNode $oldnode ) This function replaces the child oldnode with the passed new node. If the newnode is already a child it will not be added a second time. If the replacement succeeds the old node is returned. Parameters: newnode The new node. It must be a member of the target docum

DOMNodelist::item

(PHP 5, PHP 7) Retrieves a node specified by index DOMNode DOMNodelist::item ( int $index ) Retrieves a node specified by index within the DOMNodeList object. Tip If you need to know the number of nodes in the collection, use the length property of the DOMNodeList object. Parameters: index Index of the node into the collection. Returns: The