Google Feed Loader API ignoring XML attributes

anaksimandros

New Member
Google's feed loader appears to be ignoring attributes when converting to JSON. I'm using jQuery to grab a feed via AJAX.The actual RSS XML feed can be seen here, and the response from the AJAX call can be seen here.I need to access the \[code\]url\[/code\]attribute of the \[code\]<enclosure>\[/code\] tags, but neither appear in the response.For reference, the code I am using is:\[code\]function getFeed(url) { url = 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url); $.ajax({ type: 'GET', url: url, dataType: 'jsonp', cache: false, success: function(d) { alert(JSON.stringify(d); }, error: function(s,x) { alert(x); } }); }\[/code\]I can't figure out how to get an XML response instead, as changing \[code\]dataType : 'xml'\[/code\] causes an HTTP error. JSON is preferable.Any ideas?
 
Back
Top