Solved

Google weather API has error in XML

Posted on 2009-04-03
10
1,210 Views
Last Modified: 2012-05-06
http://www.google.com/ig/api?weather=23510

Look at line 3 on the displayed XML document.  Isn't that an error?
0
Comment
Question by:CompuTurk
  • 5
  • 4
10 Comments
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 24061750
I can't access the source XML, but that seems an error indeed
(though this XML is wellformed, I think there is a ">" too much)
0
 
LVL 2

Author Comment

by:CompuTurk
ID: 24061805
Seems like the last part of the line 2 is repeated.  I am wondering if this is the cause of weather not working on this site.

http://www.norfolkcvb.com/index.php

Look at top right corner.  It usually displays icon for the weather and the temperature in Fahrenheit.
Arggghh!
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 24061842
Could be, if that site is relying on the google api, it likely is
0
 
LVL 2

Author Comment

by:CompuTurk
ID: 24070234
I think the problem is something else.  I am not sure what it is.  This just stopped working.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 60

Expert Comment

by:Geert Bormans
ID: 24072105
I object.
The original question is completely and accurately answered in my first comment.
Namely " it isn' a wellformedness error "
Today, on a Sunday, you state that the problem, on a site that originally had nothing to do with this question, is likely something else and you immedeatly start the process of deletion,
so, I don't agree, I answered the original question....
Note that if you would have given me more time (more than a couple of hours on a Sunday morning), I might have had the oportunity to look into your follow up question
0
 
LVL 2

Author Comment

by:CompuTurk
ID: 24072346
Gertone, relax...it is fine.  I would go ahead and accept your question as an answer, but I believe this question does not deserve to be added to the EE Library since it is not providing a solution.

So, I will go ahead and reopen this question.
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 24073292
OK, well I am curious to know what else you expect to find here...

The Norfolk website uses the GoogleApi Weather service
http://www.google.com/ig/api?weather=Norfolk
I found that in the page of the Norfolk website.

The call for the service happens in an Ajax function, and I can't access the details of that function.
So, there is a bug in google API, that is a possible problem of using public services,
if you find it really annoying, send a message to google about it.

On the other hand, the payload of the google service is still wellformed XML
(I made a little Ruby test harnass and downloaded the XML for quiet a bit of those requests,
they all suffer from the same error)
So, if I were to develop the XSLT or whatever DOM oriented program to deal with this XML, it would not suffer from the bug.

If you are at the development side of the Norfolk site, change your processes, you can perfectly deal with this wellformed XML without any problem.
If you are just using the Norfolk site, you need to live with the problem until someone at google or at Norfolk corrects some code

What more can I do for you?
0
 
LVL 2

Author Comment

by:CompuTurk
ID: 24073785
This all all I needed.  Thanks.
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 24074957
welcome
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XML Parsing Classic ASP 5 50
Detect file exist or not 3 132
Convert Oracle data into XML document 2 59
jQuery AJAX Redirects Without Response/Error 10 46
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now