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

(PHP 5 >= 5.2.0, PHP 7) Canonicalize nodes to a file public int DOMNode::C14NFile ( string $uri [, bool $exclusive [, bool $with_comments [, array $xpath [, array $ns_prefixes ]]]] ) Canonicalize nodes to a file. Parameters: uri Path to write the output to. exclusive Enable exclusive parsing of only the nodes matched by the provided

DOMNode::getLineNo

(PHP 5 >= 5.3.0, PHP 7) Get line number for a node public int DOMNode::getLineNo ( void ) Gets line number for where the node is defined. Returns: Always returns the line number where the node was defined in. Examples: DOMNode::getLineNo() example <?php // XML dump for below example $xml = <<<XML <?xml v

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

(PHP 5, PHP 7) Clones a node public DOMNode DOMNode::cloneNode ([ bool $deep ] ) Creates a copy of the node. Parameters: deep Indicates whether to copy all descendant nodes. This parameter is defaulted to FALSE. Returns: The cloned node.