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

def addCDATA(self, cdata, 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))
    else:
        self.appendChild(CDATASection(cdata))
