O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading and Saving XML in a Sample Application

The XmlPhoneBook sample application demonstrates how to load and save DataSets in XML format. The XML can be stored on the local file system or through a stream associated with an IrDAClient. There is a C# and VB version of XmlPhoneBook in the folder \SampleApplications\Chapter8.

When the XmlPhoneBook application launches, the screen shows a DataGrid and a series of buttons. The DataGrid shows the contents of a DataSet maintained by the application. To set up a brand new DataSet, follow these steps:

1.
Click the New PhoneBook button. The application responds by creating a new DataSet, but there are no records loaded.
2.
Create a random record and insert it into the DataSet by clicking the Add Random ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required