コード例 #1
0
def load_string(string):
    root = ET.fromstring(string)
    for omath in root.findall(OMML_NS + 'oMath'):
        yield oMath2Latex(omath)
コード例 #2
0
ファイル: omml.py プロジェクト: bittercoffeeweb/QuestionBank
def load_string(string):
	root = ET.fromstring(string)
	for omath in root.findall(OMML_NS+'oMath'):
		yield oMath2Latex(omath)
コード例 #3
0
def load(stream):
    tree = ET.parse(stream)
    for omath in tree.findall(OMML_NS + 'oMath'):
        yield oMath2Latex(omath)
コード例 #4
0
ファイル: omml.py プロジェクト: bittercoffeeweb/QuestionBank
def load(stream):
	tree = ET.parse(stream)
	for omath in tree.findall(OMML_NS+'oMath'):
		yield oMath2Latex(omath)