Discuss this help topic in SecureBlackbox Forum
Create and add the node to the document
First you need to create an instance of the class, which corresponds to the type of the node being added. This is done by calling one of Create<NodeType>(<NodeName>) or Create<NodeType>NS(<NodeName>) methods of TElXMLDOMDocument class. Those methods create a node of the needed type, owned by the document object.
Next, use one InsertBefore(), ReplaceChild(), AppendChild() methods of the TElXMLDOMNode class to add the node as a child of some existing node.