Chapter 7. Saving and Restoring Data

After completing this chapter, you will be able to:

  • Export a DataSet to a file in XML format

  • Import a previously exported DataSet from XML format

  • Define the structure of the exported XML content

  • Access the XSD schema for a DataSet or DataTable

ADO.NET isn’t the only popular format for managing data in .NET applications. XML—content crafted using the Extensible Markup Language—is another common format that provides standardized, cross-platform data management in a semi-human-readable format.

The DataSet class and the DataTable instances contained within it include features for moving data back and forth between ADO.NET and XML. This chapter demonstrates those features, focusing on the ability to serialize the contents ...

Get Microsoft® ADO.NET 4 Step by Step 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.