Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Parsing RSS Instead of JSON Info

Loving the tutorials here! I just finished the Downloading and Parsing JSON Data and everything makes sense. However for my blog, I'm trying to get it to work as well. It's Wordpress based, but the site archive is in RSS format and I'm not sure how to deal with it.

I've tried adding a JSON plugin but that only tried to reformat the already formatted RSS which didn't work.

I tried to use NSXMLParser but after 30 minutes of being lost, I thought I'd shout out for help. Looking for the same exact functionality as the tutorials here, but with this RSS feed!

Thanks!

4 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Parsing RSS can be done, but JSON is so much easier and more lightweight. The same data is much smaller in JSON format, which means it's quicker to transfer over the network. We want to keep those network connections as lightweight as possible with apps!

Truly awesome support here! Not only to I get my solution, but also the reasons why JSON is better than RSS ;) Thank you both!!

This save me a ton of time! I can't thank you enough Treehouse, Amit Bijlani and of course Ben Jakuben.