Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtQuick XML Error when Querying from Internet
Forum Updated to NodeBB v4.3 + New Features

QtQuick XML Error when Querying from Internet

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rizoritis
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vagiz
      wrote on last edited by
      #2

      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 :)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved