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

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.