Page 1 of 1

Team Manager in C# .NET 2.0

Posted: Wed Jun 28, 2006 10:17 pm
by Mr_Magick
I am a coding hobbyist, and I am trying to write a simple application to manage a Blood Bowl team. I would like to store all of the team information in an XML file, and I find that I don't have enough knowledge of XML to format the elements and if I should use attributes.

I have so far:

Code: Select all

<teams>
 <squad>
       <name>Amazon</name>
     <reroll>50000</reroll>
      <position>
            <name>Linewomen</name>
          <minqty>0</minqty>
          <maxqty>16</maxqty>
         <cost>50000</cost>
          <ma>6</ma>
          <st>3</st>
          <ag>3</ag>
          <av>7</av>
          <skills>Dodge</skills>
          <normal>g</normal>
          <double>asp</double>
        </position>
   </squad>
</teams>
Would anyone with XML experience please let me know if this is a good start, or if I should go back to XML 101 for dummies?

Posted: Sun Jul 02, 2006 7:54 am
by DoubleSkulls
Looks fine apart from the <skills> tag which should probably be more like:

Code: Select all

<skills>
   <skill>dodge</skill>
</skills>
What would be cool is to define the schema in XSD then it makes it much easier for you to share your XML with other applications.

Posted: Fri Jul 14, 2006 9:33 pm
by Father911
Is this for LRB 5.0 or LRB 4.0?
if it is 5.0 then you will want to track skills, stat increases and doubles roll skills over and above the base player so that your program can calculate TV.