QtQuick XML Error when Querying from Internet
-
Hello,
I am following the Qt Quick time and weather tutorial/example. I am at the part where I am querying data from the google weather API. I have built the code exactly as it was provided, but it does not seem that I am connecting and getting any information. Because of this, only the time shows with nothing else. I get the following two error messages:
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 3: Expected '-' or 'DOCTYPE', but got '[a-zA-Z]'.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 3: Expected '-' or 'DOCTYPE', but got '[a-zA-Z]'.I am pretty new at this and do not know what this means or how to trace it. Any help is greatly appreciated.
Thanks!
-
Hi, rizoritis!
That is because described google API is not working any more. Try to use OpenWeatherMap. They provide the API that comes in XML format too.
Hope it`ll help :)