how to parse xml in python code example
Example 1: python string to xml
import xml.etree.ElementTree as ET
root = ET.fromstring(country_data_as_string)
Example 2: python parse xml string
root = ET.fromstring(xmlData)
Example 3: python elementtree load from string
from xml.etree.ElementTree import XML, fromstring
myxml = fromstring(text)