Book Image

Windows Phone 7.5 Data Cookbook

By : Ramesh Thalli
Book Image

Windows Phone 7.5 Data Cookbook

By: Ramesh Thalli

Overview of this book

Windows Phone 7.5 Mango contains support for apps written in Silverlight or XNA. These apps can store data on the device, and also load and manipulate data from "the cloud" and other web services.This Windows Phone 7.5 Data Cookbook has a range of recipes to help you apply data handling concepts. You will be able to apply the knowledge gained from these recipes to build your own apps effectively. This Windows Phone 7.5 Data Cookbook starts with data binding concepts at the UI layer and then shows different ways of saving data locally and externally in databases. The book ends with a look at the popular MVVM software design pattern. The recipes contained in this book will make you an expert in the areas of data access and storage.
Table of Contents (15 chapters)
Windows Phone 7.5 Data Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


XML is the most popular open standard format for exchanging information in today's world. XML is human and machine readable. We don't go into detail about XML theory in this chapter, but if you want a better understanding on this topic you can refer to the online resource at http://www.w3.org/standards/xml/.

XML can be parsed using two different methods. The first method is using LINQ to XML, and the second method is using XmlReader. XmlReader is used for reading many documents or large documents that have the same structure. On the other hand, if you are reading a different structured XML, you can use LINQ to XML. XmlReader can be used for forward-only and read-only situations. If we need to write or create XML content, then the XmlWriter class is used. Caution should be exercised as large documents can take up significant resources and memory that can slow the response time of the application.

LINQ to XML is an interface supported in the WP7 (Windows Phone 7) for reading, editing...