diff --git a/reference/dom/functions/dom-domdocument-createattribute.xml b/reference/dom/functions/dom-domdocument-createattribute.xml index 75c5693771..68f348955e 100644 --- a/reference/dom/functions/dom-domdocument-createattribute.xml +++ b/reference/dom/functions/dom-domdocument-createattribute.xml @@ -1,37 +1,71 @@ - - - - DOMDocument->createAttribute - Create new attribute - - - &reftitle.description; - - DOMDocument - - DOMAttr - createAttribute - stringname - - - - This function returns a new instance of class DOMAttr. - The name of the attribute is the value of the first parameter. - &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMDocument->createElement(), - DOMNode->appendChild(), - DOMDocument->createTextNode(), - DOMDocument->createComment() and - DOMDocument->createProcessingInstruction(). - - - + + + + DOMDocument->createAttribute() + Create new attribute + + + &reftitle.description; + + DOMDocument + + DOMAttr + createAttribute + stringname + + + + This function creates a new instance of class DOMAttr. + &dom.node.inserted; + + + + &reftitle.parameters; + + + + name + + + The name of the attribute. + + + + + + + + &reftitle.returnvalues; + + The new DOMAttr or &false; if an error occured. + + + + &reftitle.exceptions; + + Throws DOMException if name + contains an invalid character. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createAttributeNS - - Create new attribute node with an associated namespace - - - - &reftitle.description; - - DOMDocument - - DOMAttr - createAttributeNS - stringnamespaceURI - stringqualifiedName - - - - This function returns a new instance of class DOMAttr. - The tag name and prefix of the attribute is determined by the value of the - passed parameter qualifiedName. The URI of the - namespace is the value of namespaceURI. - &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMDocument->createElementNS(), - DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createTextNode() and - DOMDocument->createAttribute(). - - - + + + + DOMDocument->createAttributeNS() + + Create new attribute node with an associated namespace + + + + &reftitle.description; + + DOMDocument + + DOMAttr + createAttributeNS + stringnamespaceURI + stringqualifiedName + + + + This function creates a new instance of class + DOMAttr. &dom.node.inserted; + + + + &reftitle.parameters; + + + + namespaceURI + + + The URI of the namespace. + + + + + qualifiedName + + + The tag name and prefix of the attribute, as prefix:tagname. + + + + + + + + &reftitle.returnvalues; + + The new DOMAttr or &false; if an error occured. + + + + &reftitle.exceptions; + + Throws DOMException if qualifiedName + contains an invalid character. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createCDATASection - Create new cdata node - - - &reftitle.description; - - DOMDocument - - DOMCDATASection - createCDATASection - stringdata - - - - This function returns a new instance of class - DOMCDATASection. The content of the cdata is the - value of the passed parameter. &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createTextNode(), - DOMDocument->createAttribute(), - DOMDocument->createProcessingInstruction(). - - - + + + + DOMDocument->createCDATASection() + Create new cdata node + + + &reftitle.description; + + DOMDocument + + DOMCDATASection + createCDATASection + stringdata + + + + This function creates a new instance of class + DOMCDATASection. &dom.node.inserted; + + + + &reftitle.parameters; + + + + data + + + The content of the cdata. + + + + + + + + &reftitle.returnvalues; + + The new DOMCDATASection or &false; if an error occured. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createComment - Create new comment node - - - &reftitle.description; - - DOMDocument - - DOMComment - createComment - stringdata - - - - This function returns a new instance of class - DOMComment. The content of the comment is the - value of the passed parameter. &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createTextNode(), - DOMDocument->createAttribute(), - DOMDocument->createProcessingInstruction(). - - - + + + + DOMDocument->createComment() + Create new comment node + + + &reftitle.description; + + DOMDocument + + DOMComment + createComment + stringdata + + + + This function creates a new instance of class + DOMComment. &dom.node.inserted; + + + + &reftitle.parameters; + + + + data + + + The content of the comment. + + + + + + + + &reftitle.returnvalues; + + The new DOMComment or &false; if an error occured. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createDocumentFragment - Create new document fragment - - - &reftitle.description; - - DOMDocument - - DOMDocumentFragment - createDocumentFragment - - - - - This function returns a new instance of class DOMAttr. - The name of the attribute is the value of the first parameter. - &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - + + + + DOMDocument->createDocumentFragment() + Create new document fragment + + + &reftitle.description; + + DOMDocument + + DOMDocumentFragment + createDocumentFragment + + + + + This function creates a new instance of class + DOMDocumentFragment. &dom.node.inserted; + + + + &reftitle.returnvalues; + + The new DOMDocumentFragment or &false; if an error occured. + + + &reftitle.seealso; + + + + + + + + + + + + + + + + + - DOMDocument->createElement + DOMDocument->createElement() Create new element node @@ -17,9 +17,10 @@ - This function creates a new element node. &dom.node.inserted; + This function creates a new instance of class + DOMElement. &dom.node.inserted; - + &reftitle.parameters; @@ -51,6 +52,13 @@ if an error occured. + + &reftitle.exceptions; + + Throws DOMException if name + contains an invalid character. + + &reftitle.examples; @@ -85,12 +93,16 @@ echo $dom->saveXML(); &reftitle.seealso; - DOMDocument->createElementNS() - DOMNode->appendChild() - DOMDocument->createTextNode() - DOMDocument->createComment() - DOMDocument->createAttribute() - DOMDocument->createProcessingInstruction() + + + + + + + + + + diff --git a/reference/dom/functions/dom-domdocument-createelementns.xml b/reference/dom/functions/dom-domdocument-createelementns.xml index c570e6f655..f6ad258167 100644 --- a/reference/dom/functions/dom-domdocument-createelementns.xml +++ b/reference/dom/functions/dom-domdocument-createelementns.xml @@ -1,13 +1,13 @@ - + - DOMDocument->createElementNS + DOMDocument->createElementNS() Create new element node with an associated namespace - + &reftitle.description; DOMDocument @@ -23,7 +23,7 @@ This function creates a new element node with an associated namespace. &dom.node.inserted; - + &reftitle.parameters; @@ -40,7 +40,7 @@ qualifiedName - The qualified name of the element, as prefix:tagname + The qualified name of the element, as prefix:tagname. @@ -59,8 +59,14 @@ &reftitle.returnvalues; - Returns a new instance of class DOMElement or &false; - if an error occured. + The new DOMElement or &false; if an error occured. + + + + &reftitle.exceptions; + + Throws DOMException if qualifiedName + contains an invalid character. @@ -97,12 +103,16 @@ echo $dom->saveXML(); &reftitle.seealso; - DOMDocument->createElement() - DOMNode->appendChild() - DOMDocument->createTextNode() - DOMDocument->createComment() - DOMDocument->createAttribute() - DOMDocument->createProcessingInstruction() + + + + + + + + + + diff --git a/reference/dom/functions/dom-domdocument-createentityreference.xml b/reference/dom/functions/dom-domdocument-createentityreference.xml index 7360862603..127078e323 100644 --- a/reference/dom/functions/dom-domdocument-createentityreference.xml +++ b/reference/dom/functions/dom-domdocument-createentityreference.xml @@ -1,36 +1,71 @@ - - - - DOMDocument->createEntityReference - Create new entity reference node - - - &reftitle.description; - - DOMDocument - - DOMEntityReference - createEntityReference - stringname - - - - This function returns a new instance of class - DOMEntityReference. The content of the entity - reference is the value of the passed parameter. &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createAttribute() and - DOMDocument->createComment(). - - - + + + + DOMDocument->createEntityReference() + Create new entity reference node + + + &reftitle.description; + + DOMDocument + + DOMEntityReference + createEntityReference + stringname + + + + This function creates a new instance of class + DOMEntityReference. &dom.node.inserted; + + + + &reftitle.parameters; + + + + name + + + The content of the entity reference. + + + + + + + + &reftitle.returnvalues; + + The new DOMEntityReference or &false; if an error occured. + + + + &reftitle.exceptions; + + Throws DOMException if name + contains an invalid character. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createProcessingInstruction - Creates new PI node - - - &reftitle.description; - - DOMDocument - - DOMProcessingInstruction - createProcessingInstruction - stringtarget - stringdata - - - - This function returns a new instance of class - DOMProcessingInstruction. The content of the pi is the - value of the passed parameter. &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createAttribute() and - DOMDocument->createComment(). - - - + + + + DOMDocument->createProcessingInstruction() + Creates new PI node + + + &reftitle.description; + + DOMDocument + + DOMProcessingInstruction + createProcessingInstruction + stringtarget + stringdata + + + + This function creates a new instance of class + DOMProcessingInstruction. &dom.node.inserted; + + + + &reftitle.parameters; + + + + target + + + The target of the processing instruction. + + + + + data + + + The content of the processing instruction. + + + + + + + + &reftitle.returnvalues; + + The new DOMProcessingInstruction or &false; if an error occured. + + + + &reftitle.exceptions; + + Throws DOMException if target + contains an invalid character. + + + &reftitle.seealso; + + + + + + + + + + + + + + + + - - - DOMDocument->createTextNode - Create new text node - - - &reftitle.description; - - DOMDocument - - DOMText - createTextNode - stringcontent - - - - This function returns a new instance of class - DOMText. The content of the text is the value of - the passed parameter. &dom.node.inserted; - - - The return value is &false; if an error occurred. - - - See also DOMNode->appendChild(), - DOMDocument->createElement(), - DOMDocument->createAttribute() and - DOMDocument->createComment(). - - - + + + + DOMDocument->createTextNode() + Create new text node + + + &reftitle.description; + + DOMDocument + + DOMText + createTextNode + stringcontent + + + + This function creates a new instance of class + DOMText. &dom.node.inserted; + + + + &reftitle.parameters; + + + + content + + + The content of the text. + + + + + + + + &reftitle.returnvalues; + + The new DOMText or &false; if an error occured. + + + + &reftitle.seealso; + + + + + + + + + + + + + + + +