Recommended

Skip Navigation LinksHome / News / View News

Loading a static XML file to your Windows Phone/Silverlight App

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Aug 30, 2010
(0 votes)
In this post, Cheryl Simmons explains how to load a static xml file into your WP7 application.

Source: Silverlight SDK

In my application, I have a fair amount of static data that lends itself to an XML file very well…it’s not enough data for a database solution, but too much to hard-code into the app. My goal was to store the info in an xml file and load it into an LINQ XElement. Then I could easily use LINQ queries to get the data I needed into my application. Unfortunately, it took a bit of messing around to figure out how to load this data from the file. Following are the steps I took.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 2 and 5 and type the answer here:

Join the free SilverlightShow webcast 'Running Silverlight Outside the Browser and with Elevated Trust'. Sept 7th, 8 am - 9 am PDT.
In this live session Chris Anderson will cover configuring and debugging OOB mode, toast notifications, elevated trust, direct file access and much more.
Learn more | Register | See more webinars (hide this)