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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 26, 2013, 6:29 AM EDT
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");
}
}