'Adds text to an element
Setting check_grammar=False turns off grammar checking'

def addText(self, text, check_grammar=True):

    if (check_grammar and (self.qname not in grammar.allows_text)):
        raise IllegalText, ('The    <%s>    element    does    not    allow    text' % self.tagName)
    elif (text != ''):
        self.appendChild(Text(text))
