I can parse the content of a JTextPane witout any problems in HTML:
textPane = new JTextPane();
textPane.setContentType(\"text/html\");
textPane.setText(
Use e.g.
HTMLDocument doc=(HTMLDocument) textPane.getStyledDocument();
doc.insertAfterEnd(doc.getCharacterElement(doc.getLength()),"<b>Goodbye!</b>");
Or
HTMLEditorKit kit=(HTMLEditorKit )textPane.getEditorKit();
and use the method if you would like to insert paragraph/table or another branch element
public void insertHTML(HTMLDocument doc, int offset, String html,
int popDepth, int pushDepth,
HTML.Tag insertTag)