I have a problem with XML serialization. I will try to explain this in the following example XML file
<AutoExpo>
<Details>
<Venue>XYZ</Venue>
<StartTime>09:00</StartTime>
<EndTime>21:00</EndTime>
</Details>
<Cars>
<Car>
<Company>Chevrolet</Company>
<Model>Cruz</Model>
<Color>Red</Color>
</Car>
<Car>
<Company>Ford</Company>
<Model>Fiesta</Model>
<Color>Blue</Color>
</Car>
</Cars>
</AutoExpo>
Now that I have read this xml file, I will deserialize the cars into objects. The list of cars can be huge. My code uses these objects and can change the properties of some cars. Now, if I want to serialize only those car objects whose properties have changed, go back to the xml file and save it so that the next time my code runs, it gets the latest status information.
source
share