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=13395>. 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=13395 XMLGrammarPreparser doesn't report errors correctly Summary: XMLGrammarPreparser doesn't report errors correctly Product: Xerces2-J Version: 2.2.0 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When a pre-parsed schema document contains a well-formedness error, an error is not reported to the application-specified error handler but instead it is processed by the default error handler of Xerces. The following code outlines the sequence of the method invocations: ---------------------- XMLGrammarPreparser preparser = new XMLGrammarPreparser(); preparser.registerPreparser(XML_SCHEMA,null); // turn on all the checks on the source schema preparser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking",true); preparser.setErrorHandler(new MyErrorHandler()); preparser.preparseGrammar(XML_SCHEMA,...); ---------------------------- It seems to me that the preparser is not passing the application-specified error handler to a DOM parser it uses internally to parse a schema document. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
