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=5084>.
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=5084

Effect of StandardParserConfiguration.setDocumentHandler

           Summary: Effect of StandardParserConfiguration.setDocumentHandler
           Product: Xerces2-J
           Version: 2.0.0 [beta 2]
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XNI
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


An XMLDocumentHandler registered by calling setDocumentHandler on a
org.apache.xerces.parsers.StandardParserConfiguration only gets called
if setDocumentHandler is called before setInputSource. This is very
surprising behaviour for anybody familiar with SAX, and there doesn't
seem to be any way to change document handlers during a parse.  Is
there any reason why StandardParserConfiguration does not override
setDocumentHandler to install it in the last stage of the pipeline

    public void setDocumentHandler(XMLDocumentHandler documentHandler) {
        super.setDocumentHandler(documentHandler);
        fNamespaceBinder.setDocumentHandler(fDocumentHandler);
    }

?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to