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

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

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

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

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.

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

(PHP 5, PHP 7) Creates an empty DOMDocumentType object public DOMDocumentType DOMImplementation::createDocumentType ([ string $qualifiedName = NULL [, string $publicId = NULL [, string $systemId = NULL ]]] ) Creates an empty DOMDocumentType object. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. Parameters: