We currently persist our objects to xml/soap files using a SoapFormatter.
We control the serialization and de-serialization by implementing the
ISerializable and its two interface methods, namely, GetObjectData and a
constructor that takes two arguments (a SerializationInfo object and a
StreamingContext object).
It appears with the release of .net 2.0 that support for the SoapFormatter
is 'frozen' and that the direction we should take is to convert over to
using XmlSerializer. But it doesn't seem that the XmlSerializer has a
similar mechanism for controlling the serialization process. Instead, it
seems that attributes must now be placed on properties and fields to control
the serialization process. Given the large number of different object types
we persist, this will be a daunting task. And I haven't found any
documentation about some migration path.
Any direction or help on how to get from SoapFormatter to XmlSerializer
would really help.
Paul