Skip to content

Python code snippet – How to open xml file element tree?

import xml.etree.ElementTree as ET

root = ET.fromstring(country_data_as_string)
See also  Python code snippet - How to find a word in list ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.