|
-
July 29th, 2007, 02:05 PM
#1
Saving an arraylist in xml
Hi all,
I have an arraylist that I wish to save to an xml file. I know I can do this through serialisation but that seems not correct since it is mixing the data storing and the data representation. It might be that later on the data is stored in another way.
How can I store the arraylist to an xml file without using serialisation?
kind regards, Jef
-
July 29th, 2007, 02:08 PM
#2
Re: Saving an arraylist in xml
Serialization is indeed the proper way to go (if you are storing as XML).
What you do with the XML stream (on a store) or where you get the XML stream (on a load) is what is independant of the data representation.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|