Extract part of HTML in C/Objective-C

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-06-15T13:32:04Z Indexed on 2010/06/15 22:12 UTC
Read the original article Hit count: 229

Filed under:
|
|
|
|

Hi,

I need to extract the detail content of a website while preserve all formatting of the division. The section I wish to extract is:

...
<div class="detailContent"><p>
<P dir=ltr><STRONG>Hinweis</strong>: Auf ... </p>
</div> 
...

My current solution is to use HTMLParser from libxml2 and xpath to find the nodes and walk through all the nodes to reconstruct this piece of HTML. This is a long an complicated code.

I' just wondering if there is an easier solution to extract part of HTML?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about html