see also domnode_append_child() domdocument_create_element() domdocument_create_text() domdocument_create_cdata_section() domdocument_create_attribute() domdocument_create_entity_reference() domnode_insert_before()