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