Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Export object collection to XML file
Message
From
20/02/2009 11:47:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Export object collection to XML file
Miscellaneous
Thread ID:
01383110
Message ID:
01383110
Views:
126
Using C#...I have a small app that creates objects from a class, and adds them to an object collection and it does some UI stuff along the way to display certain values from the currently selected object in the collection (Using WPF UI). So I want to add the ability to let the user save his object collection to a file, so they can load it back the next time they run the app.

I'm guessing XML is an obvious way to go, but I know nothing about how to do it. So, how do you export or dump a collection of objects to an xml file, and then, perhaps more importantly, how would I then read that XML file back into my app to re-create the collection?
Next
Reply
Map
View

Click here to load this message in the networking platform