Serialize multiple object in the same XML file

  • Thread starter Thread starter Gislain
  • Start date Start date
G

Gislain

Hello,

I'm looking for a best way to serialize multiple / different object in the
same XML file, and of course, how can i deserialize it.

Actualy, when i serialize the first object in XML file, it work fine,
But the second erase the entry of the first object !!!

Thank's by advance

Gislain
 
The way I am using is creating an class which has all the objects I want
to serialize.

In the construct, I will read each node representing each object ,and
deserilze one by one.

I have a ToXml method, and in which I will serialize one by one.

There may be better methods available.

John
 
Back
Top