Обновите XML с помощью C # с помощью Linq

Моя структура XML-файла


  
    1
    True
    Star Wars Figures
    LukeSkywalker
  

ЧИТАТЬ ДАННЫЕ ИЗ XML ПО ITEMID

XDocument xmlDoc = XDocument.Load(HttpContext.Current.Server.MapPath("data.xml"));
var items = from item in xmlDoc.Descendants("item")
            where item.Element("itemID").Value == itemID
            select new
            {
                itemID = item.Element("itemID").Value,
                isGadget = bool.Parse(item.Element("isGadget").Value),
                name = item.Element("name").Value,
                text1 = item.Element("text1").Value,
             }

foreach (var item in items)
{
     ....
}

Как обновить данные XML по itemID? Спасибо!

Ответы на вопрос(3)

Ваш ответ на вопрос