Skip to content Skip to sidebar Skip to footer

How To Parse (non Well-formed) Html In Android?

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): Co

Solution 1:

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

Solution 2:

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

Post a Comment for "How To Parse (non Well-formed) Html In Android?"