I have a base class in my SDK (Geometry) that serializes its members. Some members are just simple attributes & Elements like strings, and others are arrays of user defined classes. Now, I need to accommodate a change in my workflows which causes the base class to be child of a parent class which means the XML hierarchy will change as well. And, also I want to rename some of the attributes/elements.
But, what about the XMLs that were serialized with previous SDK code (class hierarchy). How do I de-serialize those XMLs into the new SDK?
<Geometry Type"Test" IsAssessed="False">
<Name>Sample Geometry</Name>
<LengthA>69</LengthA>
<LengthB>87</LengthB>
<LengthC>50</LengthC>
<Points>
<Point X="1537308.5" Y="16030594.72" Z="1000">
<IsTracked>false</IsTracked>
</Point>
<Point X="1537308.5" Y="16030594.72" Z="900">
<IsTracked>false</IsTracked>
</Point>
<Point X="1536601.21" Y="16028954.3" Z="-5670.6">
<IsTracked>false</IsTracked>
</Point>
</Points>
</Geometry>
So, Lets say after change is Made, a class is introduced whose name is Calculator and it has a collection of Geometry. But I want to rename Geometry as well as rename some of its elements/Attributes. And add/delete attributes too.
How do I go about it so that my previous XML's de-serialize successfully.