DataSet write XML
When you working with dataset and you want to collect data to file such as .xml, .txt, .doc I recommend collect to xml file because easy to develop Dataset in C# has writeXML and readXML method for provide. I use this below code to collect my data.
configPath = ConfigurationSettings.AppSettings["dbconfig"];
dataSet = new DataSet();
dataSet.ReadXml(configPath);