Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS parsing libraries for iPhone

I'm looking for some static library or open source project (in obj-c, released under some permissive license) to parse CSS in iPhone. Any recommendations?

like image 227
Łukasz Sromek Avatar asked Jul 29 '10 12:07

Łukasz Sromek


2 Answers

OK, I found good library for parsing CSS - libCSS from the NetSurf web browser project. Released under MIT license, can be used without problems for commercial iPhone applications distributed via the AppStore.

It requires some code for the programmer to write (e.g. you need to provide your own DOM hierarchy handlers), and there are no examples available... but people from the NetSurf dev mailing lists are very helpful. In case of problems you can search the list for my questions.

libCSS

NetSurf dev mailing list

like image 54
Łukasz Sromek Avatar answered Sep 28 '22 02:09

Łukasz Sromek


I would recommend htmlcxx. It's pretty actively maintained, written in C++ and you can use it to parse HTML and CSS.

Of course, since it's written in C++, you can use it in your iPhone application with no problems at all.

like image 22
Pablo Santa Cruz Avatar answered Sep 28 '22 01:09

Pablo Santa Cruz