Java: The declaration for the entity "HTML.Version" must end with '>'
<p>Using JAVA, I am getting below error:</p>

<pre><code>[Fatal Error] loose.dtd:31:3: The declaration for the entity "HTML.Version" must end with '&gt;'.
</code></pre>

<p>on parsing one of HTML having below content on top:</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
</code></pre>