Re: JTidy vs TagSoup

Recently, there is a need to use JTidy for some project and I sort of
updated (or I should say sync) the Java version with HTML version. The
output of

<BODY>
<table>
 <form action='pageA'>
  <tr><td><form>Input 1 Form 1: <input name='v'/></td><td>Input 2 Form 1:
  <input name='w'/>
</form>
<form action='pageB'>Input 1 Form 2: <input name='x'></td></tr>
  <tr><td>Input 2 Form 2: <input name='y'></td></tr>
</table>Input 3 Form 2:
<input name='z'>
</form>
</BODY>

will turn out to be
<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />
    <title>
      New Document
    </title>
  </head>
  <body>
    <form action='pageA'>
      <table>
        <tr>
          <td>
            <form>
              Input 1 Form 1: <input name='v' />
            </form>
          </td>
          <td>
            Input 2 Form 1: <input name='w' />
          </td>
          <td>
            <form action='pageB'>
              Input 1 Form 2: <input name='x' />
            </form>
          </td>
        </tr>
        <tr>
          <td>
            Input 2 Form 2: <input name='y' />
          </td>
        </tr>
      </table>
      Input 3 Form 2: <input name='z' />
    </form>
  </body>
</html>


If that is what you need, drop me a line and I can send you my latest
jar file.


Feng-Shuo Yu, Ph.D.
University of Iowa
Hygienic Lab
102 Oakdale Campus
Iowa City, IA 52242-5002
319/335-4852

Received on Tuesday, 16 December 2003 10:31:39 UTC