I have tried using both xmltodict and ElementTree in python to iterate through an xml document (see below example from my print(XMLDOC.tostring(root, encoding=\'utf8\').decode(\