def disconnect(self):
    'Close out the xml files\n\n        Close all the file objects that have been created\n        Re-write the files stripping off the last comma and then close with a closing tag)\n        '
    if self.table_names:
        for (output_file_i, file_name) in self.table_names:
            output_file_i.close()
            current_input_file = open_fr(file_name, encoding=self.encoding)
            file_contents = current_input_file.readlines()
            current_input_file.close()
            file_contents[(- 1)] = file_contents[(- 1)].strip(',')
            current_output_file = open_fw(file_name, encoding=self.encoding)
            current_output_file.writelines(file_contents)
            current_output_file.write('\n</root>')
            current_output_file.close()
        self.table_names = []
Close out the xml files

Close all the file objects that have been created
Re-write the files stripping off the last comma and then close with a closing tag)
def disconnect(self):
    'Close out the xml files\n\n        Close all the file objects that have been created\n        Re-write the files stripping off the last comma and then close with a closing tag)\n        '
    if self.table_names:
        for (output_file_i, file_name) in self.table_names:
            output_file_i.close()
            current_input_file = open_fr(file_name, encoding=self.encoding)
            file_contents = current_input_file.readlines()
            current_input_file.close()
            file_contents[(- 1)] = file_contents[(- 1)].strip(',')
            current_output_file = open_fw(file_name, encoding=self.encoding)
            current_output_file.writelines(file_contents)
            current_output_file.write('\n</root>')
            current_output_file.close()
        self.table_names = []