How to solve iPhone app hpple HTML Parsing 'libxml/tree.h' file not found?

1.1k Views Asked by At

I am trying to parse HTML URL content using hpple for iPhone app. I want to parse and get data from like this URL http://www.example.com/mobile/403.html. I have used Google and found hpple for HTML parsing. I got the sample HTML parsing hpple code from github. When i start to run the project the below error is occurring

'libxml/tree.h' file not found

I have added this line ${SDKROOT}/usr/include/libxml2 in project->build->header search paths but not it is looking like this iPhoneos3.1.2/usr/include/libxml2/** and also i have included libxml2.dylib and libxml2.2.dylib in my project. Am working in XCode 4.2. Could you please help to solve this error? Thanks in advance.

1

There are 1 best solutions below

0
On

Make sure you add this line:

${SDKROOT}/usr/include/libxml2 

in TARGETS->build->header search paths...

and make sure that you copied your hpple files into your project like this...

enter image description here

enter image description here

Good luck and hope this helps!