title: I am looking for an HTML parser that can replace the "small" tag with "span"'s
body: <p>Here is my code that parses the HTML and replaces occurances of the <code>&lt;small&gt;</code> tag with <code>&lt;span&gt;</code>'s</p>
  
  <pre><code>String html =
          "&lt;html&gt;"+
          "&lt;body bgcolor=''&gt;"+
                  "&lt;table class='tabletext'&gt;" +
                  "&lt;tr align='center' style='background:#FFFFFF'&gt;" +
                  "&lt;td class='classa'&gt;&lt;span id='fd'&gt;&lt;span&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;" +
                  "&lt;td&gt;10.00&lt;/td&gt;" +
                  "&lt;td&gt;&lt;small&gt;&amp;pound;0.00&lt;/small&gt;&lt;/td&gt;" +
                  "&lt;td&gt;&amp;pound;280.00&lt;/td&gt;" +
                  "&lt;td&gt;" +
                  "&lt;ul&gt;"+
                  "&lt;li&gt;&lt;a href=''&gt;ok&lt;/a&gt;&lt;/li&gt;"+
                  "&lt;/ul&gt;"+
                  "&lt;a href='/cart.php?action=add&amp;qty=10&amp;id=2628' title='Click here to add this item to your cart'&gt;" +
                  "&lt;img alt='Click here to add this item to your cart' src='/images/addtocart.gif' border='0' /&gt;" +
                  "&lt;/a&gt;" +
                  "&lt;/td&gt;" +
                  "&lt;/tr&gt;" +
                  "&lt;tr&gt;&lt;td&gt;&lt;span&gt;Hello2&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;"+
                  "&lt;/table&gt;"+
                  "&lt;/body&gt;"+
                  "&lt;/html&gt;";
          Document doc = Jsoup.parse(html);
  
  
          Elements elements = doc.select("small");
  
  
          Element element2 = elements.get(0);
          System.out.println(element2.replaceWith("&lt;span&gt;"));
  </code></pre>
  
  <p>But the above code is not working properly.</p>