G
Guest
Hi Ng,
I have an XmlDataDocument which I want to serialize, so that I can store it
in my Sql server via ADO.NET. It should be possible to read it out again and
create a similar XmlDataDocument instance, so that I can work with it.
Unfortunatly, the XmlDataDocument isn't serializable from nature. But, the
DataSet is. My question no 1:
How do I create a DataSet out of the XmlDataDocument without going over a
temp file on the harddisk. Or do I have to go over a temp file?
My question no 2:
How do I create a byte stream of my DataSet, so that it can be stored in the
Sql Server as a BLOB?
My question no 3:
How do I get back my XmlDataDocument out of the serialized DataSet, out of
the Sql Server BLOB?
Or do I have the wrong approach and is there a much simplier and better way?
I would like to thank you very much in advance.
Regards,
Patrick
I have an XmlDataDocument which I want to serialize, so that I can store it
in my Sql server via ADO.NET. It should be possible to read it out again and
create a similar XmlDataDocument instance, so that I can work with it.
Unfortunatly, the XmlDataDocument isn't serializable from nature. But, the
DataSet is. My question no 1:
How do I create a DataSet out of the XmlDataDocument without going over a
temp file on the harddisk. Or do I have to go over a temp file?
My question no 2:
How do I create a byte stream of my DataSet, so that it can be stored in the
Sql Server as a BLOB?
My question no 3:
How do I get back my XmlDataDocument out of the serialized DataSet, out of
the Sql Server BLOB?
Or do I have the wrong approach and is there a much simplier and better way?
I would like to thank you very much in advance.
Regards,
Patrick