1import xml.etree.ElementTree as ET
2
3root = ET.fromstring(country_data_as_string)
1import xml.etree.ElementTree as ET
2
3tree = ET.parse('filename.xml') #this gets the file into a tree structure
4tree_root = tree.getroot() #this gives us the root element of the file
1import xml.etree.ElementTree as ET
2root = ET.parse('thefile.xml').getroot()
3