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

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

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