DOMNode->appendChild() Adds new child at the end of the children &reftitle.description; DOMNode DOMNode appendChild DOMNodenewnode This functions appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. , etc. or simply by using any other node. &reftitle.parameters; newnode The appended child. &reftitle.returnvalues; The node added. &reftitle.exceptions; Throws DOMException if the node cannot be appended. &reftitle.examples; The following example will add a new element node to a fresh document. Adding a child createElement("para"); $newnode = $doc->appendChild($node); echo $doc->saveXML(); ?> ]]> &reftitle.seealso;