Objective-C中的HTML解析器

时间:2013-09-24 14:26:07

标签: html ios objective-c parsing xpath

我有一个脚本

<div class = "des"> 
<span class = "abc"> </span>
*content*
<div> .... </div>
<div>...</div>
</div>

我想要内容。我用了

NSString * xPath = @"div[@class='des']";
NSArray * array = [Parser searchWithXPathQuery:xPath];
for (TFHppleElement * ele in array)
{
NSString * content = [ele content];
}

但是,我刚收到content =“”。我如何获得内容

0 个答案:

没有答案