Accidentally removed some lines in the writeToXML method at some point.
They're back and that should be working again. XML files using the new
format can be created and loaded properly. Old format XMLs will have all
documents loaded into the _Unknown_ folder