'Check if there is any section info. If so, print it out.
If not, print out an empty tag to satisfy the dtd.'

def __print_sec_info(self):

    if (len(self.__section.keys()) == 0):
        self.__write_obj.write('mi<tg<open______<section-definition\n')
    else:
        self.__write_obj.write('mi<tg<open-att__<section-definition')
        keys = self.__section.keys()
        for key in keys:
            self.__write_obj.write(('<%s>%s' % (key, self.__section[key])))
        self.__write_obj.write('\n')
