草庐IT

loadedDoc

全部标签

c# - 如何使用 LINQ to XML 将新元素添加到 Windows Phone 7 上的现有 XML 文件?

在过去的几个小时里,我一直在努力使用WindowsPhone7上的LINQtoXML。我只是想将新元素添加到现有的XML文件中。XElementnewItem=newXElement("item",newXAttribute("id",3),newXElement("content","Buygroceries"),newXElement("status","false"));IsolatedStorageFileisFile=IsolatedStorageFile.GetUserStoreForApplication();IsolatedStorageFileStreamstream