Incorrect xmnl response schema for webcams

  • 1
  • Problem
  • Updated 5 years ago
The returned xml response for api call to http://www.wunderground.com/weather/a... is invalid.

Comparing to the JSON response, which is returning an array of webcams (which is better in all ways), the xml response only has an arbitrary number of elements of describing webcams under the "webcams" element.

Is this a design choice or an error?
Photo of Neelesh Ramputh

Neelesh Ramputh

  • 1 Post
  • 0 Reply Likes
  • concerned

Posted 5 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
I can say a design error for the xml output, since all fields from different webcams are queued toghether!

In compliance with other features, a missing webcam tag should wrap each group of fields, so children of webcams shall be one or more webcam, now missing