creation of the XMLWriter class