O'Reilly logo

Mac Application Development by Example Beginner's Guide by Robert Wiebe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – parsing the XML Document

Once our program has retrieved the raw XML file, we need to examine it and extract the information of interest. This is called parsing the file.

  1. In Xcode, click on the file named BTSAppDelegate.h in the project navigator and add the following defines that will be used to extract information from the XML file after it is downloaded:
    /* Global Currency defines */ // The European Central Bank exchange rate XML File #define D_ECB_RATES_URL @"http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml" // The path to the last update time in the XML tree #define D_XML_PATH_TIME @"/gesmes:Envelope/Cube/Cube" // The path to the exchange rates in the XML tree #define D_XML_PATH_RATES @"/gesmes:Envelope/Cube/Cube/Cube" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required