Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<league>
<sid>england2</sid> // string id of the league
// name of the league which will appear in the game
<name>Football League Championship</name>
<short_name>F. L. Champ.</short_name>
// a pixmap symbol for the league
<symbol>flag_en.png</symbol>
// week of the first matchday
<first_week>1</first_week>
// weeks between matchdays
<week_gap>1</week_gap>
// the average skill in the league (in the first season)
<average_skill>70</average_skill>
// the average stadium capacity
<average_stadium_capacity>30000</average_stadium_capacity>
// promotion and relegation rules
<prom_rel>
// promotion games (like currently between teams ranked 4th to 7th)
<prom_games>
// id of the league the winner gets promoted to
<prom_games_dest_sid>england1</prom_games_dest_sid>
// the cup which tells us what kind of system is used for the game (e.g. knockout, home and away games etc.)
<cup>cup_england_prom_games</cup>
</prom_games>
// regular promotion/relegation
<prom_rel_element>
// which teams get moved; in this case the teams finishing 1st and 2nd
<rank_start>1</rank_start>
<rank_end>2</rank_end>
// where they get moved to
<dest_sid>england1</dest_sid>
</prom_rel_element>
// this has the same form, but is of course a relegation
<prom_rel_element>
<rank_start>22</rank_start>
<rank_end>24</rank_end>
<dest_sid>england3</dest_sid>
</prom_rel_element>
</prom_rel>
// teams; currently only names, in the future maybe also player lists
<teams>
<team>
<team_name>Bradford</team_name>
</team>
........ <snip> ........
<team>
<team_name>Wimbledon</team_name>
</team>
</teams>
</league>
Note: The '//'-comments aren't really fitting, because we have an XML-file here.
See also the posts about the country and cup files.
suggestions, criticism and such are, as always, welcome.
gyözö