Titanium Community Questions & Answer Archive

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

RSS / XML Noob Problem

Hello everyone. I have a problem with an RSS feed that is giving me an output of:

"[ERROR] Error Domain=com.google.GDataXML Code=-1 "The operation couldn’t be completed. (com.google.GDataXML error -1.)". in -[TiDOMDocumentProxy parseString:] (TiDOMDocumentProxy.m:48)"

I have tried using both the rss.js and xml_rss.js and have the same problem. From what I understand is the RSS feed doesn't have a valid XML and I need to parse the HTML instead.

I have looked at other examples in help but I just don't understand it or what files I need. Thanks in advance for your help, I'm rather new at JS so I'm learning as I go.

— asked November 29th 2010 by Adam James
  • parse
  • rss
  • xml

1 Answer

  • Check you're not trying to parse something the parser doesn't like - an ampersand for example.

    Ti.XML.parseString chokes on those.

    — answered November 29th 2010 by Patrick Mounteney
    1 Comment
    • The feed address doesn't contain any weird characters, or are you referring to the content the feed is looking for?

      The examples I have seen have a web address that ends in ".xml" the only one I can find is ".com/feed"

      — commented November 29th 2010 by Adam James
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.