Go through the sample program given in the following link, whichwould allow you to add a child node. Hope this one helps you.http://www.egjug.org/parsing_xml_file_using_dom