1
I’m trying to read some XML files with the Element Tree of Python, but one of them, when I will do the parser give me that mistake:
xml.etree.Elementtree.Parseerror: not well-Formed (invalid token)
That’s the line that gives the error:
xml = ET.parse('./dados_apis/gamesdb/xml/infos_games/31758.xml')
This is XML file: http://thegamesdb.net/api/GetGame.php?id=31758
In Python, I’m reading from the disk because it’s already saved.
Does anyone know how I can solve this problem? Apparently it is some special character, but in the XML opening is declared there the UTF-8 encoding.
Could you ask the question your code? Because I did a test search straight from the link and it worked perfectly (https://repl.it/@acwoss/Scrawnyunlinedfunctions)
– Woss