DOMNode::normalize

(PHP 5, PHP 7) Normalizes the node public void DOMNode::normalize ( void ) Remove empty text nodes and merge adjacent text nodes in this node and all its children. Returns: No value is returned. See also: » The DOM Specification - DOMDocument::normalizeDocument() -

DOMNode::lookupPrefix

(PHP 5, PHP 7) Gets the namespace prefix of the node based on the namespace URI public string DOMNode::lookupPrefix ( string $namespaceURI ) Gets the namespace prefix of the node based on the namespace URI. Parameters: namespaceURI The namespace URI. Returns: The prefix of the namespace.

DOMNode::lookupNamespaceURI

(PHP 5, PHP 7) Gets the namespace URI of the node based on the prefix public string DOMNode::lookupNamespaceURI ( string $prefix ) Gets the namespace URI of the node based on the prefix. Parameters: prefix The prefix of the namespace. Returns: The namespace URI of the node. See a

DOMNode::isSupported

(PHP 5, PHP 7) Checks if feature is supported for specified version public bool DOMNode::isSupported ( string $feature, string $version ) Checks if the asked feature is supported for the specified version. Parameters: feature The feature to test. See the example of DOMImplementation::hasFeature() for a list of features. version The ve

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::isDefaultNamespace

(PHP 5, PHP 7) Checks if the specified namespaceURI is the default namespace or not public bool DOMNode::isDefaultNamespace ( string $namespaceURI ) Tells whether namespaceURI is the default namespace. Parameters: namespaceURI The namespace URI to look for. Returns: Return TRUE if namespaceURI is the default namespace, FALSE otherwise.

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::hasChildNodes

(PHP 5, PHP 7) Checks if node has children public bool DOMNode::hasChildNodes ( void ) This function checks if the node has children. Returns: Returns TRUE on success or FALSE on failure. See also: DOMNode::hasAttributes() -

DOMNode::hasAttributes

(PHP 5, PHP 7) Checks if node has attributes public bool DOMNode::hasAttributes ( void ) This method checks if the node has attributes. The tested node has to be an XML_ELEMENT_NODE. Returns: Returns TRUE on success or FALSE on failure. See also: DOMNode::hasChildNodes() -

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