DOMNode::isSameNode

(PHP 5, PHP 7) Indicates if two nodes are the same node public bool DOMNode::isSameNode ( DOMNode $node ) This function indicates if two nodes are the same node. The comparison is not based on content Parameters: node The compared node. Returns: Returns TRUE on success or FALSE on failure.

DOMNode::getNodePath

(PHP 5 >= 5.2.0, PHP 7) Get an XPath for a node public string DOMNode::getNodePath ( void ) Gets an XPath location path for the node. Returns: Returns a string containing the XPath, or NULL in case of an error. Examples: DOMNode::getNodePath() example <?php // Create a new DOMDocument instance $dom = new DOMDocument

DOMNode::insertBefore

(PHP 5, PHP 7) Adds a new child before a reference node public DOMNode DOMNode::insertBefore ( DOMNode $newnode [, DOMNode $refnode ] ) This function inserts a new node right before the reference node. If you plan to do further modifications on the appended child you must use the returned node. Parameters: newnode The new node. refnode

DOMNode::appendChild

(PHP 5, PHP 7) Adds new child at the end of the children public DOMNode DOMNode::appendChild ( DOMNode $newnode ) This function appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. DOMDocument::createElement(), DOMDocument::createTextNode() etc. or simply by using any other node. Parameters: newnode The ap

DOMNode::C14N

(PHP 5 >= 5.2.0, PHP 7) Canonicalize nodes to a string public string DOMNode::C14N ([ bool $exclusive [, bool $with_comments [, array $xpath [, array $ns_prefixes ]]]] ) Canonicalize nodes to a string Parameters: exclusive Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes. with_comments Re

DOMNamedNodeMap::getNamedItemNS

(PHP 5, PHP 7) Retrieves a node specified by local name and namespace URI DOMNode DOMNamedNodeMap::getNamedItemNS ( string $namespaceURI, string $localName ) Retrieves a node specified by localName and namespaceURI. Parameters: namespaceURI The namespace URI of the node to retrieve. localName The local name of the node to retrieve.

DOMNamedNodeMap::getNamedItem

(PHP 5, PHP 7) Retrieves a node specified by name DOMNode DOMNamedNodeMap::getNamedItem ( string $name ) Retrieves a node specified by its nodeName. Parameters: name The nodeName of the node to retrieve. Returns: A node (of any type) with the specified nodeName, or NULL if no node is found.

DOMNamedNodeMap::item

(PHP 5, PHP 7) Retrieves a node specified by index DOMNode DOMNamedNodeMap::item ( int $index ) Retrieves a node specified by index within the DOMNamedNodeMap object. Parameters: index Index into this map. Returns: The node at the indexth position in the map, or NULL if that is not a valid index (greater than or equal to the number of nodes in th

DOMImplementation::hasFeature

(PHP 5, PHP 7) Test if the DOM implementation implements a specific feature public bool DOMImplementation::hasFeature ( string $feature, string $version ) Test if the DOM implementation implements a specific feature. You can find a list of all features in the » Conformance section of the DOM specification. Parameters: feature The feature to test.

DOMImplementation::createDocument

(PHP 5, PHP 7) Creates a DOMDocument object of the specified type with its document element public DOMDocument DOMImplementation::createDocument ([ string $namespaceURI = NULL [, string $qualifiedName = NULL [, DOMDocumentType $doctype = NULL ]]] ) Creates a DOMDocument object of the specified type with its document element. Parameters: namespaceURI The namespace URI