471,350 Members | 1,118 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

XML serialization beginner question

Hi all,

I know how to serialize and deserialize a single class, but is it
possible to serialize multiple classes in one file?
For example, I have a baseclass, and 3 derived classes. These classes
are stored in a List<> of base class type. I'd like to be able to
serialize all the classes present in List<> in the same file.
I've tried using a different serializer for each class type, and this
saves them to the file, but I'm not sure the result is valid xml, or if
it is, how I would deserialize the classes.

Any help would be greatly appreciated.

Paul.

Jan 9 '06 #1
0 823

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by ktn | last post: by
3 posts views Thread by Aaron Clamage | last post: by
5 posts views Thread by francois | last post: by
6 posts views Thread by Uttam | last post: by
reply views Thread by eSapient | last post: by
6 posts views Thread by John Glover | last post: by
4 posts views Thread by Chris | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.