search the game id and insert the data into
how to add the data into xml in C#?
search the game id and insert the data into
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 26, 2013, 10:29 AM
using System;
using System.Xml.Linq;
class Test
{
static void Main()
{
XElement g1 = XElement.Load("games.xml");
g1.Element("games").Element("games1").Element("x").SetValue("whatever");
g1.Save("games.xml");
}
}