You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/11/28 15:49:30 UTC

DO NOT REPLY [Bug 5153] - Pull parsing of prolog broken

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

Pull parsing of prolog broken





------- Additional Comments From gmarcy@us.ibm.com  2001-11-28 06:49 -------
This looks like some of the older Xerces 1 code that didn't translate well
for the new pull parsing code that was reworked in Xerces 2.  The change
suggested will fix the prolog issue, but the epilog code needs to be changed
to avoid the same problems.

In the TrailingMiscDispatcher inner class, a case needs to be added to the
end of the switch statement, like:

                        case SCANNER_STATE_TERMINATED: {
                            return false;
                        }

and the code at the end needs to change from:

            setScannerState(SCANNER_STATE_TERMINATED);
            return false;

to:

            return true;

Someone should double check the changes to see that I am getting this right.  
Right at the moment I don't have a system set up to do so myself, just looking 
at the CVS repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org