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=16918>. 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=16918 random erroneous bad callbacks from DocumentTracer sample [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-02-10 13:53 ------- 99% you are assuming that the textual content of an element is sent to you on *one* characters() call. But if you look at the SAX javadoc [1], it says, "SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information." So instead of currentText = new String(ch, start, length); You'll probably need to if (currentText == null) currentText = new String(ch, start, length); else currentText = currentText + new String(ch, start, length); or something similar. Or use a StringBuffer instead. [1] http://xml.apache.org/xerces2- j/javadocs/api/org/xml/sax/ContentHandler.html#characters(char[],%20int,%20int) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
