write the XML in the XML file, not the JSON... ;)
more classifications corrected.