diff --git a/ex_25.py b/ex_25.py new file mode 100644 index 0000000..f9d307c --- /dev/null +++ b/ex_25.py @@ -0,0 +1,8 @@ +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) + + diff --git a/python_class.xml b/python_class.xml new file mode 100644 index 0000000..5d62c7f --- /dev/null +++ b/python_class.xml @@ -0,0 +1 @@ +StefanounknownJonathan192572463Susan214172463Dennis224176963 \ No newline at end of file