'Get the element\'s L{Text} content with optional default
@param default: A value to be returned when no text content exists.
@type default: basestring
@return: The text content, or I{default}
@rtype: L{Text}'

def getText(self, default=None):

    if self.hasText():
        return self.text
    else:
        return default
