I'm trying to parse XML with ElementTree, but I get this error:
xml.etree.ElementTree.ParseError: encoding specified in XML declaration is incorrect
My file.py:
from suds.client import Client
import xml.etree.ElementTree as ET
url = 'http://www.webservicex.com/globalweather.asmx?WSDL'
client = Client(url)
weather = client.service.GetWeather('Sao Paulo', 'Brazil')
print weather
parseWeather = ET.fromstring(weather) # >>>> Here I got my problem!
When I try to parse my xml from string weather. Anyone know how to solve this kind of problem?