tree = ET.parse('my_data.xml') # if xml data is in file tree = ET.fromstring('xml_string') # if xml data is in type string root = tree.getroot() for child in root.findall('.//SearchString'): print(child)