Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Doesn't 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.

.nerd
  • Leaders
Posted

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 you're really writing out just the datatable.

Ahhh... Heiko beat me to it:)

--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...