Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Parsing XML File in WindowsPhone in NO TIME

0.00/5 (No votes)
13 May 2014 1  
Parsing XML File in WindowsPhone in NO TIME Using BLEND for VS 2013

Introduction

Yesterday, I decided to make an application for Recipes on Windows Phone. I had an XML file and I had to parse it or extract data from it to complete my application. It was hard for me to type each recipe and then use it. So finally, I decided to parse XML file, one of the most interesting features of Blend is that it creates sample data from class, XML file as well. So I created a new project in Visual Studio and opened it in Blend. It took less than 5 minutes and I was able to see well presented recipes in my application. You can also do it, let's discover it.

Process

  • 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.

Points of Interest

If you see, parsing XML is now possible in few minutes with styling the listbox. Blend is an amazing tool that is ignored by developers but if they think it can allow them work 10 times faster.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here