refactoring method assemble_xml_file of several Class.
typo