hI,
Initially, if you want to store data from any DataSource, you have to use the Fill method for the DataAdapter, and from there you can save your Data as a XML file as you point with the WriteXml method. if you need to retrieve and store the schema of the Table, you can use also the method FillSchema from the dataset, this method will retrieve the structure of the table you are using. To persist that information use the following method
m_CustProdTable.WriteXmlSchema( "Filename.xsd")
Then when you want to use your dataset again, you base it in that schema file
Best Regards
|