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