I have an app that queries a web service, and need to parse the XML response. I got this all up and working with NSXMLDocument, until I installed to my device and find out that the iPhone OS doesnt actually have NSXMLDocument at all. Boo. Since I am more or less screenscraping HTML, NSXMLParser's event based parsing model seem like HUGE pain in the butt.
I read some people we're having good luck with TouchXML, however the documentation leaves a bit to be desired.
http://code.google.com/p/touchcode/wiki/TouchXMLHowTo
I can't figure out how to use it at all. I simply do a
And I get 254 build errors. I have added the source to the project, and its finding the files, but it cant seem to find huge amounts of constants and files like "libxml/tree.h"
It says to import "TouchXML.h" but there is no such file in the source. It also says to "Add the following lines to your project configuration"
But I'm not exactly sure where to do that in xcode? I'm sure this is a simple thing, but I can't quite figure it out. Thanks for the help.
[EDIT:] Ok, I figured out how to declare those config variables using the search field of the project info > Build screen. But sadly, it still seems libxml cant be found.
I read some people we're having good luck with TouchXML, however the documentation leaves a bit to be desired.
http://code.google.com/p/touchcode/wiki/TouchXMLHowTo
I can't figure out how to use it at all. I simply do a
Code:
#import "CXMLDocument.h"
And I get 254 build errors. I have added the source to the project, and its finding the files, but it cant seem to find huge amounts of constants and files like "libxml/tree.h"
It says to import "TouchXML.h" but there is no such file in the source. It also says to "Add the following lines to your project configuration"
Code:
OTHER_LDFLAGS = -lxml2
HEADER_SEARCH_PATHS = /usr/include/libxml2
But I'm not exactly sure where to do that in xcode? I'm sure this is a simple thing, but I can't quite figure it out. Thanks for the help.
[EDIT:] Ok, I figured out how to declare those config variables using the search field of the project info > Build screen. But sadly, it still seems libxml cant be found.