DOMDocument::createCDATASection

(PHP 5, PHP 7) Create new cdata node public DOMCDATASection DOMDocument::createCDATASection ( string $data ) This function creates a new instance of class DOMCDATASection. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: data The content of the cdata. Returns: The new DOMCDATASection

DOMDocument::createAttributeNS

(PHP 5, PHP 7) Create new attribute node with an associated namespace public DOMAttr DOMDocument::createAttributeNS ( string $namespaceURI, string $qualifiedName ) This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: namespaceURI The URI of the namespace.

DOMDocument::createAttribute

(PHP 5, PHP 7) Create new attribute public DOMAttr DOMDocument::createAttribute ( string $name ) This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: name The name of the attribute. Returns: The new DOMAttr or FALSE if an error occur

DOMDocument::__construct

(PHP 5, PHP 7) Creates a new DOMDocument object public DOMDocument::__construct ([ string $version [, string $encoding ]] ) Creates a new DOMDocument object. Parameters: version The version number of the document as part of the XML declaration. encoding The encoding of the document as part of the XML declaration.

DOMComment::__construct

(PHP 5, PHP 7) Creates a new DOMComment object public DOMComment::__construct ([ string $value ] ) Creates a new DOMComment 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::createComment. Parameters: value Th

DOMCharacterData::substringData

(PHP 5, PHP 7) Extracts a range of data from the node string DOMCharacterData::substringData ( int $offset, int $count ) Returns the specified substring. Parameters: offset Start offset of substring to extract. count The number of characters to extract. Returns: The specified substring. If the sum of offset a

DOMCharacterData::replaceData

(PHP 5, PHP 7) Replace a substring within the DOMCharacterData node void DOMCharacterData::replaceData ( int $offset, int $count, string $data ) Replace count characters starting from position offset with data. Parameters: offset The offset from which to start replacing. count The number of characters to replace. If the sum of offset

DOMCharacterData::insertData

(PHP 5, PHP 7) Insert a string at the specified 16-bit unit offset void DOMCharacterData::insertData ( int $offset, string $data ) Inserts string data at position offset. Parameters: offset The character offset at which to insert. data The string to insert. Returns: No value is returned.

DOMCharacterData::deleteData

(PHP 5, PHP 7) Remove a range of characters from the node void DOMCharacterData::deleteData ( int $offset, int $count ) Deletes count characters starting from position offset. Parameters: offset The offset from which to start removing. count The number of characters to delete. If the sum of offset and count exceeds the length, then a

DOMCharacterData::appendData

(PHP 5, PHP 7) Append the string to the end of the character data of the node void DOMCharacterData::appendData ( string $data ) Append the string data to the end of the character data of the node. Parameters: data The string to append. Returns: No value is returned. See also: