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=17788>. 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=17788 XercesDOMParser(SchemaValidator) Summary: XercesDOMParser(SchemaValidator) Product: Xerces-C++ Version: 2.1.0 Platform: Sun OS/Version: Solaris Status: NEW Severity: Major Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] If I create XercesDOMParser with the default constructor I can see XML Schema errors reported when parsing an XML document with errors. When I try to use my own MyValidator which is a subclass of SchemaValidator, I get no errors reported. In fact, this holds for the Xerces class SchemaValidator as well. So this works: myParser = new XercesDOMParser(); ... errReporter = new DOMTreeErrorReporter(); // Customized to print err msgs myParser->setErrorHandler(errReporter); and this doesn't: myParser = new XercesDOMParser(new SchemaValidator()); ... errReporter = new DOMTreeErrorReporter(); // Customized to print err msgs myParser->setErrorHandler(errReporter); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
