I want to convert an XML file to CSV. However, I keep getting the error AttributeError: 'NoneType' object has no attribute 'integer'. xmlparse = Xet.parse('Apple Music Library.xml') root = xmlparse.getroot() for i in root: Track_ID = i.find("Tack ID").integer Name = i.find("Name").text Artist = i.find("Artist").text I've tried changing the data type to text but, no change. Continue reading...