我正在解析以下内容...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tox:message SYSTEM "http://tox.sf.net/tox/dtd/tox.dtd">
<tox:message xmlns:tox="http://tox.sourceforge.net/">
<tox:model owner="scott" package="queue" function="appendFact">
<tox:parameter value=" By John Smith – Thu Feb 25, 4:54 pm ET<br><br>NEW YORK (Reuters) – Nothing happened today."/>
<tox:parameter value="10245"/>
</tox:model>
</tox:message>
...使用saxon9.jar,但得到了...
org.xml.sax.SAXParseException: The entity "ndash" was referenced, but not declared.
我如何“声明”一个实体进行解析?我如何能够预期所有潜在实体?