<p>I'm trying to do XHTML DOM parsing with JTidy, and it seems to be rather counterintuitive task. In particular, there's a method to parse HTML:</p>

<pre><code>Node Tidy.parse(Reader, Writer)
</code></pre>

<p>And to get the &lt;body /&gt; of that Node, I assume, I should use</p>

<pre><code>Node Node.findBody(TagTable)
</code></pre>

<p>Where should I get an instance of that TagTable? (Constructor is protected, and I haven't found a factory to produce it.)</p>

<p>I use JTidy 8.0-SNAPSHOT.</p>

You could use the
```
parseDOM
```
method instead, which would give you a
```
org.w3c.dom.Document
```
back:
```
```
Document document = Tidy.parseDOM(reader, writer);
Node body = document.getElementsByTagName("body").item(0);
```
```