请教高手,这是什么错误?

我使用SaxReader解析xml文件
saxReader.setEntityResolver(new PlanlistHandler());
saxReader.setErrorHandler(new PlanErrorHander());
saxReader.setMergeAdjacentText(true);
saxReader.setValidation(true);
this.document = saxReader.read(in);
验证外部dtd文件,一直报下面的错误
The markup declarations contained or pointed to by the document type declaration must be well-formed.
,请问这是什么原因。
是xml文件不匹配dtd,还是其他原因

缺省是读取互联网http网址的那个DTD进行验证,如果你不联网,就验证出错,你要自己手工转换到本地DTD,代码可参考JdonFramework中。