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
 
Hi,

Does it work with different object in the same collection ?

Thank's

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top