Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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:


From what I can tell from google, it has been broken since 8/10/10. Let me know when it is fixed.

— asked August 23rd 2010 by B Ben
  • site issues rss

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 use

    exports.getLatest = function(_callback) {
        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');
    — answered February 17th 2013 by Rainer Schleevoigt
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.