W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2003

Use jTidy to parse as far as I need

From: Endre Rognerud <e.m.rognerud@usit.uio.no>
Date: Thu, 13 Nov 2003 07:28:54 +0100
To: <html-tidy@w3.org>
Message-ID: <001c01c3a9af$694a16e0$5c5cf081@uio.no>


I'm parsing documents with the following code:

Document document =
    tidy.parseDOM(new ByteArrayInputStream(html.getBytes()), null);

The problem here is that the whole document is parsed, and this is not
necessary for many of my documents. I should stop after reaching the

Is it possible to use jTidy in a way that I can get it to parse as a uses
the DOM-tree? In this way I can save some time if I can control when to quit

Thanks for advice :)

Received on Thursday, 13 November 2003 01:29:29 UTC

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