Everytime I use xml internally in actionscript I always forget how to make use of variables and constants.
Take the follwoing code:
<player name="Brenton" number="7" position="RW">
<round number="1" goals="7" assists="4" foulsFor="1"
foulsAgainst="2" saves="0" goalsConceded="0" bonus="3" />
</player>
Now as there begins to be multiple players the round number will be generic between players so we might as well make it a constant.
This is achieved by adding curly braces {} around the constant name. {ROUND_1}
<player name="Brenton" number="7" position="RW">
<round number={ROUND_1} goals="7" assists="4" foulsFor="1" foulsAgainst="2" saves="0" goalsConceded="0" bonus="3" />
</player>