Initially:
Root node
CompetitionIndividuelle
Tireurs
Tireur <1> there is no UID for each fencer
etc - e.g. <Tireur Nom="Appleton" Prenom="Anna" DateNaissance="01.03.2010" Sexe="F" Club="FiF North Merchiston" Licence="" Categorie="" Ranking="0" Rating="" Exporte="0" Statut="F"/>
<Phases PhaseEnCours="0">
<ClassementGeneral PhaseID="1" ID=""/>
</Phases>
Define formula of 1 round of pools - Phases is updated with a TourDePoules. Phase IDs are re-shuffled
<Phases PhaseEnCours="0">
<TourDePoules PhaseID="2" ID="Round 1" ScoreMax="5" RepartitionEquilibre="1" PhaseSuivanteDesQualifies="3"/>
<ClassementGeneral PhaseID="3" ID=""/>
</Phases>
After Check-in is done, each fencer changes Statut attrib, from F to Q
<Tireur Nom="Appleton" Prenom="Anna" DateNaissance="01.03.2010" Sexe="F" Club="FiF North Merchiston" Licence="" Categorie="" Ranking="0" Rating="" Exporte="0" Statut="Q"/>
Move to Next Round (Round 1 pools).
Fencers get a UID attribute, ID="n"
<Tireur ID="1" Nom="Appleton" Prenom="Anna" DateNaissance="01.03.2010" Sexe="F" Club="FiF North Merchiston" Licence="" Categorie="" Ranking="0" Rating="" Exporte="0" Statut="Q"/>
Within TourDePoules, there are a set of Tireur tags, one per fencer, using only a REF="n" attrib and a RangInitial="n" attribute
Then a Poule is added, with UID attribute ID="n"
within the pool, each fencer gets Pool results attributes
<Tireur REF="1" NoDansLaPoule="3" NbVictoires="0" NbMatches="4" RangPoule="0"/>
They are listed in pool appearance order
The REF attribute is based on initial appearance in the /cotcot file
TourDePoules PhaseId="2" becomes
<TourDePoules PhaseID="2" ID="Round 1" ScoreMax="5" RepartitionEquilibre="1" NbDePoules="1" PhaseSuivanteDesQualifies="3">
<Tireur REF="4" RangInitial="1"/>
<Tireur REF="2" RangInitial="2"/>
<Tireur REF="1" RangInitial="3"/>
<Tireur REF="5" RangInitial="4"/>
<Tireur REF="3" RangInitial="5"/>
<Poule ID="1">
<Tireur REF="4" NoDansLaPoule="1" NbVictoires="0" NbMatches="4" RangPoule="0"/>
<Tireur REF="2" NoDansLaPoule="2" NbVictoires="0" NbMatches="4" RangPoule="0"/>
<Tireur REF="1" NoDansLaPoule="3" NbVictoires="0" NbMatches="4" RangPoule="0"/>
<Tireur REF="5" NoDansLaPoule="4" NbVictoires="0" NbMatches="4" RangPoule="0"/>
<Tireur REF="3" NoDansLaPoule="5" NbVictoires="0" NbMatches="4" RangPoule="0"/>
</Poule>
</TourDePoules>
Changing the avoid conflicts flag to "Club" changes the TourDePoules Attributes
Decalage="/club/"
<TourDePoules PhaseID="2" ID="Round 1" ScoreMax="5" RepartitionEquilibre="1" Decalage="/club/" NbDePoules="1" PhaseSuivanteDesQualifies="3">
Belle Poule will either display by pools, or a list of fencers, in pool-fencer order, with the pool number displayed
Marking up one bout (bout 7) results in
Pool's Fencers are updated, if they were involved in a bout
NoDansLaPoule is their Pool idNum REF is their competitionUid num
e.g.
<Tireur REF="1" NoDansLaPoule="1" NbVictoires="1" NbMatches="4" TD="5" TR="3" RangPoule="1"/>
The bouts are all added
Unscored bouts are added, with the two fencers identified by their competitionUid
e.g.
<Match ID="1">
<Tireur REF="1"/>
<Tireur REF="2"/>
</Match>
The two fencers involved in the bout have their results updated
e.g.
The two fencers are identified by their competition UID, NOT their number in the Pool
For the scored bout, scores and result are added as attributes. Only the scored bout receives scores
e.g.
<Match ID="7">
<Tireur REF="4" Score="3" Statut="D"/>
<Tireur REF="1" Score="5" Statut="V"/>
</Match>
One match is added for every one on the boutlist, in BP boutlist order
If you load in renamed versions of the earier status of the Competition .cotcot file, it happily accepts it.