Sorry! Email was sent before I finish it! Hi, The original html contains the following tags: .... <ul> <li>...</li> </ul> <div class="a and b"></div> <div class="a" style="height:4px"></div> <div class="c"> <p class="d"><span class="e">*</span> My text </p> .... After I parse it with the following code: Tidy tidy = new Tidy(); tidy.setXHTML(true); //print tidy.parse(inputStream, System.out); This is the result: <ul> <li>...</li> </ul> <div class="c"> <p class="d"><span class="e">*</span> My text </p> Is there a way to prevent tidy to delete those empty div tags? Thanks for the help, AndreReceived on Saturday, 30 June 2007 18:52:39 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 13:57:20 GMT