使用TouchXML和整洁的iPhone HTML解析 [英] iPhone HTML Parsing using TouchXML and tidy

查看:76
本文介绍了使用TouchXML和整洁的iPhone HTML解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 TouchXML 解析HTML.但是,似乎我要解析的数据(我不控制源,它是从Internet下载的)部分格式错误-解析期间出现各种错误.因此,似乎我应该使用内置的整洁支持来修复HTML,但是我似乎找不到任何有关如何启用它或将libtidy成功链接到我的项目的文档或信息.

I'm trying to parse HTML using TouchXML. However, it seems that the data I want to parse (I do not control the source, it's downloaded from the internet) is partially malformed - I get various errors during the parse. Therefore, it seems that I should be using the inbuilt tidy support to fix the HTML but I cannot seem to find any documentation or information on how to enable it or link libtidy successfully into my project.

如果有人知道如何执行此操作,将不胜感激.或者,如果我可以使用其他工具来做到这一点-请告诉我!

If anyone has any information on how to do this, it'd be much appreciated. Alternatively if there's another tool I could be using to do this - do tell me!

推荐答案

事实证明,尽管可以将框架链接到xcode项目中,但是缺少标头.我通过下载 HTML Tidy Source (src和include目录),并将它们添加到我的xcode项目中进行编译.

Turns out that although the framework can be linked in to an xcode project, the headers are missing. I have got around this by downloading the HTML Tidy Source (src and include directory) and added them in to compile as part of my xcode project.

这篇关于使用TouchXML和整洁的iPhone HTML解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆