title: JTidy java API toConvert HTML to XHTML
body: <p>I am using JTidy to convert from HTML to XHTML but I found in my XHTML file this tag <code>&amp;nbsp;</code>. 
  Can i prevent it ?<br>
  this is my code</p>
  
  <pre><code>    //from html to xhtml
     try   
      {  
          fis = new FileInputStream(htmlFileName);  
      }  
      catch (java.io.FileNotFoundException e)   
      {  
          System.out.println("File not found: " + htmlFileName);  
      }  
          Tidy tidy = new Tidy(); 
          tidy.setShowWarnings(false);
          tidy.setXmlTags(false);
          tidy.setInputEncoding("UTF-8");
          tidy.setOutputEncoding("UTF-8");
          tidy.setXHTML(true);// 
          tidy.setMakeClean(true);
          Document xmlDoc = tidy.parseDOM(fis, null);  
      try  
      {  
          tidy.pprint(xmlDoc,new FileOutputStream("c.xhtml"));  
      }  
      catch(Exception e)  
      {  
      }
  </code></pre>