Case: An application for Recipes on Windows Phone.



I had a XML file and I had to parse it or extract data form it to complete my application. It was hard for me to type each recipes and then use it. So finally I decided to to parse XML file, one of the most interesting feature of Blend is, that it creates sample data from class, xml file as well. So I created new project in Visual Studio and opened it in Blend.It took less then 5 minutes and I was able to see well presented recipes in my application. You can also do it, lets discover it,

  • Open Blend and create a new project.
  • Go to Data tab at right top.







  • Go to Data tab and Click on Create Sample data tab
  • Click on Create Sample Data from XML.
  • You will see a dialog like this,

  • Browse XML file you want to parse and click OK.
  • Now at right side in data tab you will see data and collection.

  • Drag the collection and drop on windows phone interface.

  • Change Item Template according to your need.
  • Your XML file is parsed.
  • By following these steps you can parse any time of XML file.
  • Saves time and gives quick result.