DTD download error while parsing XHTML document in XOM

后端 未结 2 1364
醉梦人生
醉梦人生 2020-12-17 02:25

I am trying to parse an HTML document with the doctype declared to use the transitional dtd as follows:

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 02:26

    Taking a quick look at the javadoc for Builder, I guess you could provide an EntityResolver via the constructor that takes a XMLReader. I would avoid letting the parser download files from the internet where possible.

提交回复
热议问题