16 lines
355 B
Python
16 lines
355 B
Python
#!/usr/bin/python3
|
|
|
|
from lxml import etree
|
|
|
|
def tei_to_dict(s_el):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
with open("/home/kristjan/kres_mount/kres_parsed/tei/F0025751.xml.parsed.xml") as f:
|
|
xmlstring = re.sub(' xmlns="[^"]+"', '', fp.read(), count=1)
|
|
xmlstring = xmlstring.replace(' xml:', ' ')
|
|
xml_tree = ElementTree.XML(xmlstring)
|
|
|
|
|
|
|