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