Added missing import.
Added support to write in XML format.
Related to issue karlitrotski/CodingSpectator/#39.
Programmed by @joffreyc85