I have to create a backup XML file every few minutes, here's the current code:
XElement xml = new XElement("Items",
new XElement("Backup",
new XElement("Console", consoleName),
new XElement("Begin", beginTime),
new XElement("End", endTime),
new XElement("Time", totalTime),
new XElement("Price", totalPrice)
xml.Save("Items.xml");
The problem is that it re-creates the XML file everytime, thus only the last item being saved. What am I missing? Thanks.