The class which handles writing XML data to file.