How can add elements in an XML file in Windows Phone 7 using anything you want like (Linq or XmlWriter) I did it before in normal C# app but in Silverlight and WP7 is different.
The file is in the solution explorer folder (“files/IO.xml”), so no need to give answers about the IsolatedStorage.
My file is like this :
<?xml version="1.0" encoding="utf-8"?>
<lights>
<light id="1" name="toto" />
<light id="2" nom="titi" />
</light>
Any ideas ?
Assuming your file is in IsolatedStorage, you can try something like this: