Hi, When a list item doesn't contain text but is followed with another list, parsing fails with error "Error: Panic - tree has lost its integrity". Test12 Here is the sample code. Thanks Tejashree public class TestJTidy { private final static Tidy tidy = new Tidy(); public static void main(String[] args) throws UnsupportedEncodingException { TestJTidy t = new TestJTidy(); t.setup(); String rawXHTML = "<ol><li>Test<ol><li>1</li></ol><ol><li><ol><li>2</li></ol></li></ol></li></ol>"; rawXHTML = rawXHTML.replaceAll("\t",...