I am adding data to an existing xml file dynamically.But when i am doing like this,the old data is replacing with the new data.Is there any API or method to refresh the xml file so that no data should be lost when i add the data.
The API is the one you are already using, I expect. You just have to use it differently. If you provided a small code example I am sure somebody could point out what exactly you should do differently.
(And by the way: when you say you are adding the data "dynamically", exactly what do you mean by that?)
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
a bit of art, as a gift, the permaculture playing cards