Use jTidy to parse as far as I need

Hi!

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
body-tag.

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
parsing...

Thanks for advice :)

--
Endre

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