'Prints the expression as MathML.'

def doprint(self, expr):

    mathML = Printer._print(self, expr)
    unistr = mathML.toxml()
    xmlbstr = unistr.encode('ascii', 'xmlcharrefreplace')
    res = xmlbstr.decode()
    return res
