There's a bunch of different ways of doing this. You can put your data into a DataSet or DataTable object and use it's WriteXml methods. You can write it out using the XmlDocument classes or a straight text file, ... But, noone is just going to give you the code to do this. Though, we'll help you write your own code.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007