Hi,

i have an issue with the above mentioned GrammarPool.

I try to validate several documents (based on the same dtd) with a SAXParser
using a GrammarPool to speed up the whole thing.

If the first document, which is parsed, contains Entities (e.g. ü) it
can be validated successfully and the following documents, too. But if the
first document doesn't contain entities, but the second or third one does,
the error event of the content handler is raised with this message:

The entity "uuml" was referenced, but not declared

I can't see a reason why Xerces behaves like this.

Attached, there are a small Java file, two test documents (one with an
entity, one without) and the DTD which the sample documents conform to.

I tried this with latest Xerces 2.7.1

Kind regards
Simon

Attachment: name.dtd
Description: Binary data

Attachment: without_entities.xml
Description: Binary data

Attachment: with_entities.xml
Description: Binary data

Attachment: ValidationTest.java
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to