View Single Post
  #4 (permalink)  
Old August 27th, 2009, 06:43 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You are reading a single object to and from the XML file, therefore the file is only ever going to contain 1 object.

You either need to make to 1 object you are reading and writing a collection (e.g. List<AccNum>), or manually manipulate the XML using XmlDocument or some such.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?