Simplification du HTML inclus
Ebauche de l'extraxteur.
Analyse de la structure du fichier quiz-L1-Grammaire-Gloses-20141004-0841.xml
Recuperation du html brut de chaque question.
Ne traite pas les entrees "KALABA".
Script to extract glosses from Moodle cloze questions.
Added argparse to run script from command line.
Usage:
Extracteur-Gloses.py [-h] filename

The script requires BeautifulSoup to parse the xml and CData sections and automatically removes span and br tags.

For each entry it checks for duplicates and saves only unique entries.
Entries having the same name but different values are distinguished by appending "#" to the entry name.

It parses "French" questions and creates an xml file with all possible gloses for each word (gloses_francais.xml).

It parses "Kalaba" questions and creates an xml file with all possible gloses for each word (gloses_kalaba.xml).

TODO: manage the remaining edge case = "questions retrouver sons des mots"
Xml files automatically generated by Extracteur-Gloses.py
Tweaked the xml layout.
Changed 'word' tag to 'syntagm'.

Sample entries are in sample.xml
French words are in gloses_francais.xml.
Kalaba words are in gloses_kalaba.xml.

Files are UTF-8 compliant.
Words are sorted.
No parsing errors.
All entries have their expected values.

Added "type" attribute to the answer tag children nodes.
All syntagm entries are lower case.