'Get whether the element has no children.
@param content: Test content (children & text) only.
@type content: boolean
@return: True when element has not children.
@rtype: boolean'

def isempty(self, content=True):

    noattrs = (not len(self.attributes))
    nochildren = (not len(self.children))
    notext = (self.text is None)
    nocontent = (nochildren and notext)
    if content:
        return nocontent
    else:
        return (nocontent and noattrs)
