I am trying to set up TouchXML in my iPhone app to parse HTML from a website, but unfortunately the website's HTML isn't valid XML. I'd like to use HTML tidy to tidy it up, and in fact TouchXML has a setting, TOUCHXMLUSETIDY
, which when turned on in fact does this. But when I turn on this setting, I get the following errors: Tidy.h: No such file or directory found.
I have libtidy.dylib installed in my target, and tried downloading the HTML Tidy source and putting it directly into my app, but nothing is working. Any suggestions for how to tidy up HTML into valid XML on the iPhone?
Asked
Active
Viewed 1,023 times
0

Jason
- 14,517
- 25
- 92
- 153
2 Answers
0
Tidy.h is found in /usr/include/tidy add that to your User Header Search Paths in xcode as well as add -ltidy to your Other Linker Flags. You should be all set.

Cody
- 1
-
1I did what you said. but I still get the error: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_CTidy", referenced from: objc-class-ref in – Jackson Tale Aug 11 '11 at 12:52