G
Guest
I want to be able to deserialize data contained within a XML file to a data
structure. This I know how to do. However, what I want to be able to do is
the following:
1. Serialize multiple "C# classes" into a single XML file. One at a time.
2. Deserialize each "C# class" from the XML file. One at a time.
Is this possible? I don't see a way to do this. If it isn't possible does
anyone have a suggestion on how to get around a problem I have. I have many
data structures that I need to save to disk and later retrieve when a program
runs. The data structures are contained in nodes of a TreeView list. If I
serialize each structure one-by-one I may have hundreds of XML files. I want
to group certain TreeView node-paths all under a single XML file to have
fewer XML files to manage and thus make things easier. How could I go about
doing this?
structure. This I know how to do. However, what I want to be able to do is
the following:
1. Serialize multiple "C# classes" into a single XML file. One at a time.
2. Deserialize each "C# class" from the XML file. One at a time.
Is this possible? I don't see a way to do this. If it isn't possible does
anyone have a suggestion on how to get around a problem I have. I have many
data structures that I need to save to disk and later retrieve when a program
runs. The data structures are contained in nodes of a TreeView list. If I
serialize each structure one-by-one I may have hundreds of XML files. I want
to group certain TreeView node-paths all under a single XML file to have
fewer XML files to manage and thus make things easier. How could I go about
doing this?