Dataset and XML

soniix

Member
Joined
Apr 18, 2003
Messages
19
i have a small question

how can i write only one table from a dataset to an xml file and not the whole dataset, if the dataset contains more than one tables?

thnx
 
Doesnt the table object have a corresponding method?
If not, you could create a new, empty dataset and add just that single table you want to write to xml.
 
Create an new dataset and add the table to it would be the easiest way then serialize this new dataset. You could either inherit the DataTable and add this to it or create a helper class so that this "wrapping" is transparent and it looks like youre really writing out just the datatable.
Ahhh... Heiko beat me to it:)
 
Back
Top