needs advice in xmlserialize arraylist. [modified]
-
hi, imagine that i have five arraylists(ShapeTypeList,ColorList,CoordList,SizeList,PathList). All contains different types such as enum,Color,Point[] and etc. This arraylist is used in the form to store information on the Shapes to be drawn onto the form. Then, there is a Save function which is used to store all the informations in the arraylist using xml. I've create a AllData class inorder to serialize the class to an xml file. Can anybody give me some guides or tips on how to use xmlserializer to save the arraylist into xml file? the format i'm looking for is as below: .... .... .... ....... ........ ........ However other format also acceptable as long as i can deserialize it later. Thanks in advance. -- modified at 3:59 Wednesday 22nd August, 2007
-
hi, imagine that i have five arraylists(ShapeTypeList,ColorList,CoordList,SizeList,PathList). All contains different types such as enum,Color,Point[] and etc. This arraylist is used in the form to store information on the Shapes to be drawn onto the form. Then, there is a Save function which is used to store all the informations in the arraylist using xml. I've create a AllData class inorder to serialize the class to an xml file. Can anybody give me some guides or tips on how to use xmlserializer to save the arraylist into xml file? the format i'm looking for is as below: .... .... .... ....... ........ ........ However other format also acceptable as long as i can deserialize it later. Thanks in advance. -- modified at 3:59 Wednesday 22nd August, 2007
here is an example on xmlSerialization http://www.4shared.com/file/22596905/834df73f/XmlSerializationExample.html[^] good luck :)