7.18.2011

Objective-C XML parsing

Out of curiosity I started fooling with objective-c a few weeks back. One of the sample projects I thought up was a dopey book-like RSS feed reader. This required parsing some XML and then displaying it in a page-flipping manner.


When I first went out to learn about the topic, I found the documentation to be a bit hard to understand. While it was probably concise and accurate, it didn't explain the topic the way I wanted. Part of the reason was that I hadn't done delegate programming before, or heard of it. Another part was that I was reading MWaterfall's MWParser code for a bit more understanding.


Long story short, after a bunch of poking, it appears it's pretty easy to do XML parsing. There are some short examples in this MacRumors post but I like my way. So, if you feel like looking at the code or checking it out, it's hosted at Google Code. Hopefully it'll prove a simpler example of implementing an RSS feed reader. Code review and helpful comments are welcome. 



No comments:

Post a Comment