Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. needs advice in xmlserialize arraylist. [modified]

needs advice in xmlserialize arraylist. [modified]

Scheduled Pinned Locked Moved C#
xmltutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cyn8
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • C cyn8

      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

      H Offline
      H Offline
      Hessam Jalali
      wrote on last edited by
      #2

      here is an example on xmlSerialization http://www.4shared.com/file/22596905/834df73f/XmlSerializationExample.html[^] good luck :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups