Hi,
You can write directly xml file from dataset. after that you can encrypt your xml file using any of the encryption algorithm.
DataSet dset = new DataSet();
dset.WriteXml(xmlfilepath);
although its not full code with encryption but it may help you.
thanks
-Amit.