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

问题描述

我试图在我的iPhone应用程序中设置TouchXML以解析来自网站的HTML,但不幸的是,该网站的HTML不是有效的XML。我想用HTML tidy来整理它,事实上TouchXML有一个设置, TOUCHXMLUSETIDY ,当它打开时实际上是这样做的。但是当我打开这个设置时,我得到以下错误: Tidy.h:找不到这样的文件或目录。我在目标中安装了libtidy.dylib,下载HTML Tidy源代码并将其直接放入我的应用程序,但没有任何工作。任何关于如何在iPhone上整理HTML成为有效的XML的建议?

您是否下载了?
然后,您应该将/ TouchXML / Externals / tidy / src中的文件添加到您的项目中。这是整洁!


I am trying to set up TouchXML in my iPhone app to parse HTML from a website, but unfortunately the website's HTML isn't valid XML. I'd like to use HTML tidy to tidy it up, and in fact TouchXML has a setting, TOUCHXMLUSETIDY, which when turned on in fact does this. But when I turn on this setting, I get the following errors: Tidy.h: No such file or directory found. I have libtidy.dylib installed in my target, and tried downloading the HTML Tidy source and putting it directly into my app, but nothing is working. Any suggestions for how to tidy up HTML into valid XML on the iPhone?

解决方案

Did you download the TouchXML?Then you should add the files in /TouchXML/Externals/tidy/src to your project. That's the tidy!

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

10-22 23:05