The child can be created with e.g. domdocument_create_element(), domdocument_create_text() etc. or simply by using any other node.
DomDocument_create_element(), DomDocument_create_text() etc. or simply by using any other node.