python code to parse xml file code example Example: python parse xml string root = ET.fromstring(xmlData)