Parsing the feed with NSXMLParser


show more Parsing the feed with NSXMLParser provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013) show less
please wait ...

Parsing the feed with NSXMLParser

Parsing XML is a processor intensive operation and mobile devices tend to have limited processing power. Even though Apple continues to improve the specs of each iteration of their devices, in order to preserve the responsiveness that these devices are known for, we'll be doing our parsing in a separate execution thread. This ensures that we don't block the main thread, which could cause the user interface to freeze during parsing. Let's start by making a working copy of BWRSS-XML-03. I'm going to use the -done version here, and I'm just option dragging to make a copy and rename that to -04.

I'll open the project in Xcode by double-clicking on this Xcode project file. Now, remember we have this NSLog line, which says we have data, and that happens when we finish loading from the NSURLConnection. So, if I run this in the iPhone Simulator, I select the iPhone Simulator and click Run. When I click on one of these feeds, you'll notice we'll get a message down here in the...

Parsing the feed with NSXMLParser
Video duration: 8m 2s 3h 45m Intermediate

Viewers:

Parsing the feed with NSXMLParser provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013)

Subject:
Developer
Software:
iOS
Author:
please wait ...