DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17691>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17691 XMLGrammarPreparser doesn't work correctly when EntityResolver is set. Summary: XMLGrammarPreparser doesn't work correctly when EntityResolver is set. Product: Xerces2-J Version: 2.2.1 Platform: All OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The javadoc of the XMLEntityResolver says it can return null from the resolveEntity method if an entity was not found. I took this to mean that when I return null from this method, the parser will try to load it, and I believe that's how it works in the parser implementation of Xerces. However, when I set an XMLEntityResolver to XMLGrammarPreparser and return null from the resolveEntity method, is simply assumes that the entity resolution failed completely --- it doesn't try to attempt to load the entity by itself. I think this is a bug, and XMLGrammarPreparser needs to be modified to handle the situation where the resolveEntity method returns null. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
