Join Bill Weinman for an in-depth discussion in this video Parsing the feed with NSXMLParser, part of iOS App Development: Building Data-Driven Apps with SQLite.
- Now that we have an RSS feed, we need to run NSXMLParser…to get the title and description of the feed.…This will be stored in the database…and used for displaying in the main feed table view.…In this movie, we'll concentrate…on parsing the feed to get these pieces of data.…Here I have opened a working copy of BWRSS-AddView-03…from chapter five of the Exercise Files.…And if we look at, or is it here,…parseRSSHeader(),…this gets called when we know…that we have data that is an RSS feed.…
We set up an NSXMLParser object called parser.…Set the delegate to self and call parse.…Now we get our data in the NSXMLParserDelegate.…And these delegate methods are…just like we saw in the items table view.…Yeah, what we're doing with it is…actually quite a big simpler.…All we're looking for,…and if we take a look here at our sample RSS feed,…all we're looking for is these items here:…the title, the link, and the description.…
So here in parserDidStartDocument,…we set up the data structures for parsing.…And you notice this little status message here.…
- Building a testbed
- Creating an Objective-C interface for SQLite
- Creating a CRUD interface
- Designing the database schema
- Creating the main table view
- Creating the items table view
- Adding new feeds
- Parsing feeds with NSXML Parser
- Viewing webpages
- Preparing icons and toolbar images
- Adding a preferences pane
- Including pull-to-refresh and other features
Skill Level Intermediate
Android App Development: Local Data Storage (2013)with David Gassner3h 41m Intermediate
1. Building a Testbed
2. Building the Database Library
3. Creating the Main Table View
Populating the table view3m 30s
4. Creating the Items Table View
5. Adding New Feeds
6. Viewing Webpages
7. Preparing the Visual Assets
8. Adding a Preferences Pane
9. Adding Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.