DOMDocument.AppendChild
Syntax:
Parameters:
<NewNode> (required)
A new child DOM node.
Returned value:
Description:
Availability:
Note:
- if this node does not allow a node to be added as a child node, or the added node is one of its parents, or the node is added to itself, or this node is Document and the second node is DocumentType or Element;
- if the added node is created by a document different from the document that has created this node;
- if this node is read-only or the previous parent of the added node is read-only;
- if the added node is a child of the Document node, and the implementation does not support deletion of DocumentType and Element nodes of the Document node.