this functions appends a child to an existing list of children or creates a new list of children the child can be created with eg domdocument _ create _ element domdocument _ create _ text etc or simply by using any other node 