Element child1 = dct.createElement("Name");
// Get the root node so we can explore its children
Element root = dct.getDocumentElement();
// Get the element from the user..
Text text1 = dct.createTextNode(name);
// Append the element to existing XML file
When I add the element "Hello" to the books.xml file for the first time, system appended the element Hello in books.xml file.. but for the second time , it overwrite the hello .. How can i append the element to existing file.. ?