W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

JTidy as an error reporter

From: Brian Zimmer <bzimmer@ignitemedia.com>
Date: Mon, 28 Aug 2000 17:11:08 -0500
Message-ID: <1AC60639CC71D4118A0B009027AFC9A80D02B2@GEORGIA>
To: html-tidy@w3.org
One of the requirements of our application is to accept end user's html.  In
a number of cases this html is poorly written/generated and I'd like to be
able to inform the user of such and prohibit acceptance until it's properly

I'd like to use JTidy wrapped in a JSP tag to handle this but the api seams
a little confusing to me.  I can instantiate JTidy but none of the public
methods seem to be what I want.  Instead, I find myself ripping out code
from main or instantiating a StreamInImpl so I can use a the Lexer instance
and look for errors.  However this seems less than optimal.  What I really
want is a list of errors as objects such as would be written to stderr.  Am
I missing something entirely or is this not really how JTidy is designed?



<name>brian zimmer</name>
<email>bzimmer <at/> ignitemedia <dot/> com</email>
Received on Monday, 28 August 2000 18:08:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC