开发者

How to parse (non well-formed) HTML in android?

开发者 https://www.devze.com 2022-12-12 20:38 出处:网络
How to parse non well-formed HTML in android ? I tried to use XOM and TagSoup, but i get the following error when creating the Builder:

How to parse non well-formed HTML in android ?

I tried to use XOM and TagSoup, but i get the following error when creating the Builder:

11-26 20:42:39.294: ERROR/dalvikvm(1298): Could not find method org.apache.xerces.impl.Version.getVersion, referenced from method nu.xom.Builder.

Must i install Xerces to use XOM or can i use开发者_JAVA技巧 tagsoup without XOM ?


You might find JTidy (http://jtidy.sourceforge.net/) - a port of HTMLTidy to be sufficiently lightweight. It outputs XHTML on request


XOM may require Xerces to be in the classpath - it may depend on the version of Java. Currently we use

xercesImpl-2.8.0.jar
0

精彩评论

暂无评论...
验证码 换一张
取 消