FYI - Your RSS feed for new question Q&A might be broken
When trying to subscribe in google reader to your RSS feed on the Q/A page, I get this:
http://developer.appcelerator.com/feed/questions/created
From what I can tell from google, it has been broken since 8/10/10. Let me know when it is fixed.
1 Answer
-
A way is to use a converter xml2json like XMLtools.js from David Bankier. Http client retrieves you the xml and the lib converts to object.
Here an example, how to useexports.getLatest = function(_callback) { require('offlinealert').create(); var xhr = Ti.Network.createHTTPClient({ onload : function() { var XMLTools = require('modules/XMLtools'); var parser = new XMLTools(this.responseXML); var rss = parser.toObject(); _callback((Object.prototype.toString.call(rss.channel.item) === '[object Array]' ) ? rss.channel.item : [rss.channel.item]); } }); xhr.open('GET', 'http://www.podcampus.de/nodes.rss'); xhr.send(); }