Writing a DataSet to XML without Schema Information

The process of loading schema information into a DataSet is computationally intensive and time consuming, especially on a device. An efficient way to deal with a DataSet is to load its schema just once when you first instantiate it. You can store the schema information in a separate XML file. Use ReadXmlSchema() to do this.

All subsequent writing of the actual tables can be written without the schema included. Since you will load this data back into another DataSet that already has a schema loaded, you can save yourself the time of having to load schema repeatedly. You can also save space and network bandwidth by writing the XML data without schema, if you know that everyone who will consume ...

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.