[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Parsing bad HTML

  • From: Henri Sivonen <hsivonen@i...>
  • To: Paul M <pjmaip@y...>
  • Date: Fri, 14 Nov 2008 11:33:30 +0200

Re:  Parsing bad HTML
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/




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.