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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.