scientific-programming-exer.../ex_25.py
2018-12-06 12:29:30 +01:00

9 lines
169 B
Python

from defusedxml import ElementTree
with open("python_class.xml") as fin:
for i, node in enumerate(ElementTree.parse(fin).iter()):
print(node.tag, ":", node.text)