Problem
You have some data in a DataSet object, and you would like to export it to an XML file for later reimportation.
Solution
Discussion
Recipe 13.8 builds a DataTable object with two state-specific records. The following code adds that table to a DataSet object and writes its records to an XML file:
Dim fullDataSet As New Data.DataSet fullDataSet.Tables.Add(stateTable) fullDataSet.WriteXml("C:\StateInfo.xml")