Example #1
0
def buildFromPMathml(etree, plotter):
    handler = MathMLHandler(plotter)
    etree.saxify(handler)
    return handler.buildTree()
Example #2
0
def parseString(s, plotter):
    handler = MathMLHandler(plotter)
    xml.sax.parseString(s, handler)
    return handler.buildTree()