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