'Requires:
my_string -- all the string in the toc
Returns:
modidified string
Logic:'

def __parse_toc_func(self, my_string):

    toc_level = 0
    toc_suppress = 0
    (my_string, book_start_string, book_end_string) = self.__parse_bookmark_for_toc(my_string)
    main_entry = ''
    my_changed_string = 'mi<tg<empty-att_<field<type>toc-entry'
    my_changed_string += '<update>static'
    if book_start_string:
        my_changed_string += ('<bookmark-start>%s' % book_start_string)
    if book_end_string:
        my_changed_string += ('<bookmark-end>%s' % book_end_string)
    lines = my_string.split('\n')
    for line in lines:
        token_info = line[:16]
        if (token_info[0:2] == 'tx'):
            main_entry += line[17:]
        if (token_info == 'cw<tc<toc-level_'):
            toc_level = line[20:]
        if (token_info == 'cw<tc<toc-sup-nu'):
            toc_suppress = 1
    if toc_level:
        my_changed_string += ('<toc-level>%s' % toc_level)
    if toc_suppress:
        my_changed_string += '<toc-suppress-number>true'
    my_changed_string += ('<main-entry>%s' % main_entry)
    my_changed_string += '\n'
    return my_changed_string
