[
https://issues.apache.org/jira/browse/XERCESC-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867079#action_12867079
]
Ben Griffin commented on XERCESC-1859:
--------------------------------------
There is a workaround, which is for the DOMLSResourceResolver class to keep a
record of which resources it has passed back, and to return a NULL for those
which have already been returned. The parser will then go and use the existing
record(s) in the GrammarPool.
Not sure I've expressed it clearly, but you should get the idea.
> DOMLSResourceResolver resolveResource() called for every instance of a DTD.
> ---------------------------------------------------------------------------
>
> Key: XERCESC-1859
> URL: https://issues.apache.org/jira/browse/XERCESC-1859
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (DTD)
> Affects Versions: 3.0.1
> Environment: x86 build
> Reporter: Ben Griffin
> Attachments: 12421546.zip
>
>
> By overriding DOMLSResourceResolver, it can be identified that every time a
> DTD based document is being validated, the DTD cache is being ignored, and
> DOMLSInput* DOMLSResourceResolver::resolveResource() is being called to
> locate the relevant resource.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]