NSXMLParser parses XML, reports when each node ends, better for very, very large documents.
libxml2 loads whole xml file into memory.
iPhone SDK Development by Bill Dudney and Chris Adamson
initWithContentsOfURL: may block GUI while downloading, can not handle HTTP authentication.
initWithData: accumulate data with NSURLConnection’s delegate -didReceiveResponse, -didReceiveData, -connectionDidFinishLoading.
- copy TouchXML files to project
- in “Targets”, select target > Get Info > add /usr/include/libxml2 to Header Search Paths
- add libxml2.dylib to “Frameworks”
instead of adding libxml2.dylib link to the Framework on the system:
Other Linker Flags: