Hi,
I've an application that needs saving data from datagrid into an XML file.
Currently, it is working only half way coz the file keeps saving the data to the original file. Which means, it is appended to the bottom of the .XML but it repeats the root element.
I'ld like to eliminate this problem, but couldn't go about it.
Any suggestion?
I think my current code is a little low-level, so hopefully, there's a more efficient method.

Thanks,
Ika
P.S: I've inserted screen shots of the before and after of the .xml file when new data is inserted.
******