TFHppleElement (Hpple), parsing HTML on iphone

我的梦境 提交于 2019-12-10 11:15:39

问题


I'm using Hpple and it's been great so far however I want to get all the divs inside another and that I can do. But then I am unable to further parse the contents (innerHTML, and in the source it is labelled innerHTML not innerText) asking for the elements content returns nothing as there is no text directly in that element, only child nodes/elements which then contain text.

What alternatives are there to Hpple and parsing HTML on the iPhone.


回答1:


The alternatives to Hpple I have found so far were:

  • ElementParser
  • Objective-C HTML Parser
  • XPathQuery

Since I am in the process of researching the issue myself I have still no idea, which one is best suited for your problem, however.



来源:https://stackoverflow.com/questions/2860941/tfhppleelement-hpple-parsing-html-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!