Unable To Save The Changes In XML File
i am facing problem when i try to save the XML file i store the XML file in Assets folder and set build action to Android Assets but when xml.Save('Q317664.xml'); line comes it giv
Solution 1:
We cannot edit and save the XML file in Assets folder. Files in Assets folder are files containing static data that are shipped with APK. We cannot write to it. You can read the xml edit it and then probably save the file to App's Directory.
Solution 2:
In Xamarin Android
var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
var filename = Path.Combine(path, "myFile.xml");
File.WriteAllText(filename,xml.ToString());
Post a Comment for "Unable To Save The Changes In XML File"