W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Fw: JTidy : Tidy & DOM - 2 steps ??

From: Shahed Moolji <shahed@enoor.com>
Date: Wed, 8 Jan 2003 11:42:01 -0600
Message-ID: <002301c2b73d$40793ad0$8c05a8c0@teleformix.tfmx.com>
To: <html-tidy@w3.org>


----- Original Message -----
From: "Shahed Moolji" <shahed@enoor.com>
To: <html-tidy@w3.org>
Sent: Wednesday, January 08, 2003 8:47 AM
Subject: JTidy : Tidy & DOM - 2 steps ??


> Hi,
>
> I am using JTidy to build a DOM tree on an html document.
>
> The steps I take are
>
> 1. Clean the HTML using the Clean / lexer classes.
> 2. Output the clean HTML document to a temporary file using the PPrint
class
> 3. Read back the file and build a DOM tree using Tidy.parseDOM.
>
>
> This works, but it looks like unnecessary steps.
>
> Is there a better way to achieve this in 1 step ?
> i.e Parse / Clean and build DOM all at once ?
>
> Thanks
> Shahed
>
>
Received on Wednesday, 8 January 2003 12:27:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT