This project has moved and is read-only. For the latest updates, please go here.

Serialize DataTable/DataSet

May 9, 2008 at 7:13 PM
Is possible to serialize DbDataTable/DbDataSet? If so, which lib ver!
Have tried straight serialise, but get repeating loop error. Tried Dataset.getXML -> xmldocument then serialize xmldocument/documentelement but then also error.
Do have to write custom serializer?

May 9, 2008 at 11:07 PM
I would imagine so. DataSets aren't the sort of object which would serialize automatically.
If you do write a custom serializer it would be great to post the source so others could also use it.
Jun 2, 2008 at 7:29 PM
I didn't have any problems:

XmlDocument d = new XmlDocument();

Works fine here.