Team name
The program looks for the team name to be between the <TITLE> and </TITLE> tags.
Race
The program looks for the text 'Race:' and takes the text directly following that, or the text in the next cell
(between <TD> and </TD>).
Coach
The program looks for the text 'Coach:' or 'Coached by:' and takes the text directly following that, or the text in
the next cell.
Re-rolls
The program looks for the text 'Re-rolls:' and takes the text directly following that, or the text in the next cell.
Fan factor
The program looks for the text 'Fan Factor:' and takes the text directly following that, or the text in the next cell.
Assistant coaches
The program looks for the text 'Assistant coaches:' and takes the text directly following that, or the text in the next cell.
Cheerleaders
The program looks for the text 'Cheerleaders:' and takes the text directly following that, or the text in the next cell.
Apothecary
The program looks for the text 'Apothecary:' and takes the text directly following that, or the text in the next cell.
Team wizard
The program looks for the text 'Team wizard:' and takes the text directly following that, or the text in the next cell.
At this point it doesn't recognize Halfling Master Chefs or other wizard-replacements.
Team rating
The program looks for the text 'Team rating:' and takes the text directly following that, or the text in the next cell.
Treasury
The program looks for the text 'Treasury:' and takes the text directly following that, or the text in the next cell.
The players
The program looks for the text >#< (the # that is in the left top cell of the player roster; usually part of
<TD>#</TD>). After it finds that, it looks for 16 table rows, starting with <TR and ending with </TR>.
Each of those lines should have the following cells, in this order: player number, player name, player position, MA, ST,
AG, AV, skills, Injury (M or N), # completions, # interceptions, # touchdowns, # casualties, # mvp. Total SPP will be
calculated by the program, player cost is ignored.
You can split the table row over multiple lines in your html. The program reads a line and if it has <TR> in it, it adds the next line(s) to it until it also has </TR> before processing the complete line.
The program always reads 16 table rows, so make sure your html has 16, even if your roster has less than 16 players!
Ronald Lokers