views:

98

answers:

2

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?

A: 

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.

Pablo Santa Cruz
Its not released under a permissive license though
Woody
indeed, it seems that LGPL is not appstore-friendly: http://stackoverflow.com/questions/459833/which-open-source-licenses-are-compatible-with-the-iphone-and-app-store
Łukasz Sromek
A: 

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

Łukasz Sromek