'Requires:
nothing
Returns:
nothing
Logic:
Write out the list-table start tag.
Iterate through self.__all_lists. For each list, write out
a list-in-table tag. Get the dictionary of this list
(the first item). Print out the key => value pair.
Remove the first item (the dictionary) form this list. Now iterate
through what is left in the list. Each list will conatin one item,
a dictionary. Get this dictionary and print out key => value pair.'

def __write_final_string(self):

    not_allow = ['list-id']
    id = 0
    self.__list_table_final = 'mi<mk<listabbeg_\n'
    self.__list_table_final += (('mi<tg<open______<list-table\n' + 'mi<mk<listab-beg\n') + self.__list_table_final)
    for list in self.__all_lists:
        id += 1
        self.__list_table_final += 'mi<tg<open-att__<list-in-table'
        the_dict = list[0]
        the_keys = the_dict.keys()
        for the_key in the_keys:
            if (the_key in not_allow):
                continue
            att = the_key
            value = the_dict[att]
            self.__list_table_final += ('<%s>%s' % (att, value))
        self.__list_table_final += '\n'
        levels = list[1:]
        level_num = 0
        for level in levels:
            level_num += 1
            self.__list_table_final += 'mi<tg<empty-att_<level-in-table'
            self.__list_table_final += ('<level>%s' % str(level_num))
            the_dict2 = level[0]
            the_keys2 = the_dict2.keys()
            is_bullet = 0
            bullet_text = ''
            for the_key2 in the_keys2:
                if (the_key2 in not_allow):
                    continue
                test_bullet = the_dict2.get('numbering-type')
                if (test_bullet == 'bullet'):
                    is_bullet = 1
                att2 = the_key2
                value2 = the_dict2[att2]
                if ((att2[0:10] == 'show-level') and is_bullet):
                    pass
                elif ((att2[(-6):] == 'suffix') and is_bullet):
                    bullet_text += value2
                elif ((att2[(-6):] == 'prefix') and is_bullet):
                    bullet_text += value2
                else:
                    self.__list_table_final += ('<%s>%s' % (att2, value2))
            if is_bullet:
                pass
            self.__list_table_final += '\n'
        self.__list_table_final += 'mi<tg<close_____<list-in-table\n'
    self.__list_table_final += ('mi<mk<listab-end\n' + 'mi<tg<close_____<list-table\n')
    self.__list_table_final += 'mi<mk<listabend_\n'
