Friday, 30 August 2013

XDocument load XML in Windows Phone 8

XDocument load XML in Windows Phone 8

I have this code will run when the page is navigated to.
private XDocument xdoc = XDocument.Load("APPSDATA.xml");
It run Ok with the first run, but when I back to the main page and go back
to this page again, an error occurred. I dont understand why, anyone can
help me with this ? Tks
{System.Xml.XmlException: Cannot find file 'APPSDATA.xml' in the
application xap package.

No comments:

Post a Comment