def load_string(string): root = ET.fromstring(string) for omath in root.findall(OMML_NS + 'oMath'): yield oMath2Latex(omath)
def load_string(string): root = ET.fromstring(string) for omath in root.findall(OMML_NS+'oMath'): yield oMath2Latex(omath)
def load(stream): tree = ET.parse(stream) for omath in tree.findall(OMML_NS + 'oMath'): yield oMath2Latex(omath)
def load(stream): tree = ET.parse(stream) for omath in tree.findall(OMML_NS+'oMath'): yield oMath2Latex(omath)