{"id":3639,"date":"2014-03-29T07:22:56","date_gmt":"2014-03-29T07:22:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/load-xml-file-from-bin-folder-collection-of-common-programming-errors\/"},"modified":"2014-03-29T07:22:56","modified_gmt":"2014-03-29T07:22:56","slug":"load-xml-file-from-bin-folder-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/load-xml-file-from-bin-folder-collection-of-common-programming-errors\/","title":{"rendered":"Load xml file from bin folder-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn Hi, I am new in WP development. I load a xml file\u00a0 using<\/p>\n<p><code>XDocument loadedData = XDocument.Load(<\/code><code>\"Contact.xml\"<\/code><code>)<\/code><\/p>\n<p><code>Now I want to load this file from bin directory.<\/code><\/p>\n<p><\/li>\n<li>\n<h3>10 Answers<\/h3>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn1 Hi, There is no bin directory inside\u00a0a Windows Phone unless you created one yourself. Here are the local phone storage options: 1. As part of your build (the collection of files in your built XAP file; you can inspect the .XAP contents by renaming it to a .ZIP file).\u00a0 You can place resources there as &#8220;content&#8221;, i.e. stand alone files, or as &#8220;resource&#8221;, i.e. inside a DLL. All of these files are read-only. 2. In Isolated Storage. Files and folders within can be read-write. Hope this helps,<\/p>\n<p>Mark<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn2<\/p>\n<blockquote><p>Isolated storage on the emulator is not persistent.<\/p><\/blockquote>\n<p>IIRC it persists as long as the emulator isn&#8217;t shut down. It should persist between executions of the game.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn3 Hi, Isolated Storage is the only way to store new data permanently (into flash memory in the phone). The only thing that is more permanent is the application package itself, deployed to the phone via the XAP (also in flash memory but in an area that the developer cannot change; it is read only).<\/p>\n<p>&#8211; Mark<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn4 HI, I have seen some example of isolated storage, but it doesn&#8217;t store data permanently.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn5<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn6<\/p>\n<blockquote><p>it doesn&#8217;t store data permanently<\/p><\/blockquote>\n<p>Huh?<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn7 Hi Jim, I have created a project using isolated storage. where i created a xml file and save some data into it and show those data at application runtime. When i run the app later and try to only show data, it shows empty.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn8 Then you are doing something wrong. Items in isolated storage remain until they are deleted or the application that created them is deleted. Are you perhaps testing on the emulator? Isolated storage on the emulator is not persistent.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn9<\/p>\n<blockquote><p>Isolated storage on the emulator is not persistent.<\/p><\/blockquote>\n<p>IIRC it persists as long as the emulator isn&#8217;t shut down. It should persist between executions of the game.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn10<\/p>\n<blockquote>\n<blockquote><p>Isolated storage on the emulator is not persistent.<\/p><\/blockquote>\n<p>IIRC it persists as long as the emulator isn&#8217;t shut down. It should persist between executions of the game.<\/p>\n<\/blockquote>\n<p>YRC \ud83d\ude09<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>msdn Hi, I am new in WP development. I load a xml file\u00a0 using XDocument loadedData = XDocument.Load(&#8220;Contact.xml&#8221;) Now I want to load this file from bin directory. 10 Answers msdn1 Hi, There is no bin directory inside\u00a0a Windows Phone unless you created one yourself. Here are the local phone storage options: 1. As part [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3639","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3639"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3639\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}