You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2003/03/07 21:19:29 UTC

DO NOT REPLY [Bug 17788] New: - XercesDOMParser(SchemaValidator)

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: xerces-c-dev@xml.apache.org
        ReportedBy: kbs@colonnadesoftware.com
                CC: kbs@colonnadesoftware.com


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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org