I have tried to read the xml format file from a normal textfile using the option clean = ET.fromstringlist(filename). One issue I find after doing this is, Iam not able to use getroot command. print(clean.getroot())
Following error is coming. There is nothing wrong with the format as tags and other command results are perfectly fine. Could anyone please let me know what Iam doing wrong here? AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getroot'