def __str__(self):
        """ Represent tag in string format """
        if self.__dict__['content']:
            return '<%s%s>%s</%s>' % (self.__class__.__name__, strattr(self.__dict__['attributes']),
                                      concat(*self.__dict__['content']), self.__class__.__name__)
        else:
            return '<%s%s/>' % (self.__class__.__name__, strattr(self.__dict__['attributes']))
def __str__ ( self ) : if self . __dict__ [ 'content' ] : return '<%s%s>%s</%s>' % ( self . __class__ . __name__ , strattr ( self . __dict__ [ 'attributes' ] ) , concat ( * self . __dict__ [ 'content' ] ) , self . __class__ . __name__ ) else : return '<%s%s/>' % ( self . __class__ . __name__ , strattr ( self . __dict__ [ 'attributes' ] ) )
Represent tag in string format