I’m working on a WP7 app. The app will have a couple of XML files. Some are read-write, a couple are read-only. What are my options here? IsolatedStorage? Embedding as resources?
I’ll also need to know…
- How would I load the XML into XElements from either?
- How would I save from an XElement into either?
For write access you will need to use IsolatedStorage. You can check if the file exists and load it from IsolatedStorage otherwise load it from a resource. For read-only access you can just load it from a resource. Add the xml files to your project check Build Action is Content.