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

DOMImplementation::__construct

(PHP 5, PHP 7) Creates a new DOMImplementation object DOMImplementation::__construct ( void ) Creates a new DOMImplementation object.

DOMEntityReference::__construct

(PHP 5, PHP 7) Creates a new DOMEntityReference object public DOMEntityReference::__construct ( string $name ) Creates a new DOMEntityReference object. Parameters: name The name of the entity reference. Examples: Creating a new DOMEntityReference <?php $dom = new DOMDocument('1.0', 

DOMElement::setIdAttributeNS

(PHP 5, PHP 7) Declares the attribute specified by local name and namespace URI to be of type ID public void DOMElement::setIdAttributeNS ( string $namespaceURI, string $localName, bool $isId ) Declares the attribute specified by localName and namespaceURI to be of type ID. Parameters: namespaceURI The namespace URI of the attribute. localName

DOMElement::setIdAttributeNode

(PHP 5, PHP 7) Declares the attribute specified by node to be of type ID public void DOMElement::setIdAttributeNode ( DOMAttr $attr, bool $isId ) Declares the attribute specified by attr to be of type ID. Parameters: attr The attribute node. isId Set it to TRUE if you want name to be of type ID, FALSE otherwise. Ret

DOMElement::setIdAttribute

(PHP 5, PHP 7) Declares the attribute specified by name to be of type ID public void DOMElement::setIdAttribute ( string $name, bool $isId ) Declares the attribute name to be of type ID. Parameters: name The name of the attribute. isId Set it to TRUE if you want name to be of type ID, FALSE otherwise. Returns:

DOMElement::setAttributeNS

(PHP 5, PHP 7) Adds new attribute public void DOMElement::setAttributeNS ( string $namespaceURI, string $qualifiedName, string $value ) Sets an attribute with namespace namespaceURI and name name to the given value. If the attribute does not exist, it will be created. Parameters: namespaceURI The namespace URI. qualifiedName The qualif

DOMElement::setAttributeNodeNS

(PHP 5, PHP 7) Adds new attribute node to element public DOMAttr DOMElement::setAttributeNodeNS ( DOMAttr $attr ) Adds new attribute node attr to element. Parameters: attr The attribute node. Returns: Returns the old node if the attribute has been replaced. Exception: Raised if the node is readonly.

DOMElement::setAttributeNode

(PHP 5, PHP 7) Adds new attribute node to element public DOMAttr DOMElement::setAttributeNode ( DOMAttr $attr ) Adds new attribute node attr to element. Parameters: attr The attribute node. Returns: Returns old node if the attribute has been replaced or NULL. Exception: Raised if the node is readonly.

DOMElement::setAttribute

(PHP 5, PHP 7) Adds new attribute public DOMAttr DOMElement::setAttribute ( string $name, string $value ) Sets an attribute with name name to the given value. If the attribute does not exist, it will be created. Parameters: name The name of the attribute. value The value of the attribute. Returns: The new DOMAt