Groups | Blog | Home
all groups > dotnet windows forms databinding > july 2005 >

dotnet windows forms databinding : DataSets



eXtreme
7/12/2005 6:45:36 AM
When using the writexml feature of the dataset is there a way to specifiy
which tables are written to the XML file or do I have to write all tables in
the dataset to the file?

I realize I could just copy to another dataset but am concerned about memory
usage when duplicating data in memory.

Thanks,
eXtreme

v-jetan NO[at]SPAM online.microsoft.com (
7/13/2005 3:17:32 AM
Hi eXtreme,

Thanks for your post.

Yes, for this issue, I think we can remove the unwanted datatable
references from the dataset, then invoke DataSet.WriteXml to serialize the
dataset to the xml with expected tables. At last, we can re-add the removed
DataTable references back to the DataSet.

Note: because we are only remove/add DataTable references, there will not
be much performance hit.

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
v-jetan NO[at]SPAM online.microsoft.com (
7/15/2005 5:40:11 AM
Hi eXtreme,

Does my reply make sense to you? If you still have any concern, please feel
free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button