Programmatic HTMLDocument generation using Java

前端 未结 9 1886
孤独总比滥情好
孤独总比滥情好 2021-02-14 03:34

Does anyone know how to generate an HTMLDocument object programmatically in Java without resorting to generating a String externally and then using HTMLEditorKit#read to parse i

9条回答
  •  情书的邮戳
    2021-02-14 04:10

    You can use any decent xml library like JDom or Xom or XStream. Html is just a special case of XML.

    Or, you can use one of the existing templating engines for server side java like jsp or velocity.

提交回复
热议问题