Using xml for Data Storage  
Author Message
JBartz





PostPosted: XML and the .NET Framework, Using xml for Data Storage Top

I'm using xml files to hold my data, but would like to do something a little more secure.

I want to keep the ease of using Readxml and Writexml to move the data into and out of my Datasets while actually writing it as something else, say binary. Is there a good way to do this



.NET Development2  
 
 
Dennis Stone - MSFT





PostPosted: XML and the .NET Framework, Using xml for Data Storage Top

You could cut out the middle man (xml) altogether and just serialize your DataSet using the binary formatter. Here's a link with some code (skip down to the ADO.NET 2.0 section):

http://msdn.microsoft.com/msdnmag/issues/04/10/CuttingEdge/

Dennis



 
 
JBartz





PostPosted: XML and the .NET Framework, Using xml for Data Storage Top

Thanks, that was pretty much exactly what I had asked for!