Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - [xml-dev] Parsing bad HTML [Thread Next] Re: [xml-dev] Parsing bad HTMLTo: Paul M <pjmaip@-----.---> Date: 11/14/2008 9:34:00 AM On Nov 13, 2008, at 22:22, Paul M wrote: > The problem is with 7<eight. Stray < and > seem to make tidy choke. > What is the best method of handling this? I suggest using the HTML5 parsing algorithm. It has been developed to be implementable by browsers without breaking compatibility with real sites. (Of the current parsing algorithms in various browsers, the HTML5 parsing algorithm is closest to WebKit.) > Maybe a Java solution? The Validator.nu HTML Parser implements the HTML5 parsing algorithm in Java and exposes familiar XML APIs as if it were an XML parser parsing an equivalent XHTML5 document. http://about.validator.nu/htmlparser/ -- Henri Sivonen hsivonen@i... http://hsivonen.iki.fi/ _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-dev-unsubscribe@l... subscribe: xml-dev-subscribe@l... List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
