how to format xml before parse python 3 code example Example: python parse xml string root = ET.fromstring(xmlData)