Simple libxml2 HTML parsing example, using Objective-c, Xcode, and HTMLparser.h

后端 未结 2 572
心在旅途
心在旅途 2020-12-01 08:31

Please can somebody show me a simple example of parsing some HTML using libxml.

#import 

NSString *html = @\"
    \"
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 09:05

    As Vladimir said, for the second point it's important to replace rawContents with Contents. rawContents will print the complete raw text node, i.e.:

    Hello World 1
    

提交回复
热议问题