def buildFromPMathml(etree, plotter): handler = MathMLHandler(plotter) etree.saxify(handler) return handler.buildTree()
def parseString(s, plotter): handler = MathMLHandler(plotter) xml.sax.parseString(s, handler) return handler.buildTree()