Hi what im trying to do in my program (Its a pokemon platinum version team organizer) im making it for a friend and for anyone else who wants it but what im trying to do is i have 2 checked list boxes wth a limit on how many selections they can make (6) one for pokemon (theres 493) and one for levels (theres 100) what im trying to do though is i got an xml file cause im going to use xml serialization and i want whenever someone clicks the 6 pokemon they want and the levels they want them to be at it puts it in the xml file for later retrival on another part of the form but heres my xml code by the way its 183 lines
also the first screenshot is where the Input is and the 2nd screenshot is where the output is

<?xml version="1.0" ?> 
<!--Data For Pokemon Team Organizer-->
<!--If you delete this, this program will still work but will not do any organizing-->
<Data>
<Story>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
<PKMN4>
<Name></Name>
<Level></Level>
</PKMN4>
<PKMN5>
<Name></Name>
<Level></Level>
</PKMN5>
<PKMN6>
<Name></Name>
<Level></Level>
</PKMN6>
</Story>
<BTS>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
</BTS>
<BTD>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
<PKMN4>
<Name></Name>
<Level></Level>
</PKMN4>
</BTD>
<BAS>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
</BAS>
<BAD>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
<PKMN4>
<Name></Name>
<Level></Level>
</PKMN4>
</BAD>
<BCS>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
</BCS>
<BCD>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
<PKMN4>
<Name></Name>
<Level></Level>
</PKMN4>
</BCD>
<BHS>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
</BHS>
<BHD>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
</BHD>
<T>
<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>
<PKMN2>
<Name></Name>
<Level></Level>
</PKMN2>
<PKMN3>
<Name></Name>
<Level></Level>
</PKMN3>
<PKMN4>
<Name></Name>
<Level></Level>
</PKMN4>
<PKMN5>
<Name></Name>
<Level></Level>
</PKMN5>
<PKMN6>
<Name></Name>
<Level></Level>
</PKMN6>
</T>
<DC>
<DOPU>
<DOD></DOD>
<POD></POD>
</DOPU>
<PKMN>
<First></First>
<Second></Second>
<LOF1st></LOF1st>
<LOF2nd></LOF2nd>
<LG1st></LG1st>
<LG2nd></LG2nd>
</PKMN>
</DC>
</Data>

and heres 2 screenshots of the program
first screenshot is of the first part of the form for input to the <Story></story> part of the xml file and desired levels and names to go into something like this

<PKMN1>
<Name></Name>
<Level></Level>
</PKMN1>

But the problem im having is with the xml serialization part but if i get it right for one part i can just edit it to my needs for all the other parts so if i can get help on the serialization and deserialization i would be very greatful

i should explain this a bit easier

[CheckedListbox1]
493 Items
3 Selected
random name1
random name 2
random name 3
[Checked List Box2]
100 Items
3 Selected
lvl1
lvl2
lvl3

XML File

<Story>
<PKMN1>
<Name>random name 1</Name>
<level>lvl1</level></PKMN1><PKMN2>
<Name>random name 2</Name>
<level>lvl2</level></PKMN2><PKMN3>
<Name>random name 3</Name>
<level>lvl3</level></PKMN3>l

This is what i want it to do

First Screenshot:
you choose your pokemon from the first box
and then you choose your level from the 2nd
it then takes the levels you picked and the name of the pokemon and then fills the specified sections on the xml file
so say your picked 3 diffrent pokemon
and 3 diffrent levels but not in order and it transfers them to there sections in the xml
Second Screenshot:
It reads them from the xml file and then puts them in the specified sections in the text boxes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.