S
Stephen J. Shephard
Hi,
I'm a real fan of serializing and deserializing objects into xml, but it
seems that the xmlserializer only likes to serialize to a file on disk. I'm
sure that's the whole point of serialization (commit to persistent storage),
but I often find myself wishing I could commit an object to an XmlDocument
or resurrect an object from an XmlDocument object and then decide what to do
with it -- save it to disk, commit it to a text field in a database, etc.
Specifically, I'd like to be able to represent an object as xml so I can
store the xml in a database text field.
Can anybody recommend the best way to do this?
I'm a real fan of serializing and deserializing objects into xml, but it
seems that the xmlserializer only likes to serialize to a file on disk. I'm
sure that's the whole point of serialization (commit to persistent storage),
but I often find myself wishing I could commit an object to an XmlDocument
or resurrect an object from an XmlDocument object and then decide what to do
with it -- save it to disk, commit it to a text field in a database, etc.
Specifically, I'd like to be able to represent an object as xml so I can
store the xml in a database text field.
Can anybody recommend the best way to do this?