我解析了下面......org.xml.sax.SAXParseException:實體 「ndash的」 被引用,但沒有宣佈
<?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.
如何「聲明」一個實體進行解析?我將如何能夠預測所有潛在的實體?