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=15313>. 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=15313 serializing characters when in CDATA handled incorrectly Summary: serializing characters when in CDATA handled incorrectly Product: Xerces2-J Version: 2.2.1 Platform: All OS/Version: All Status: NEW Severity: Critical Priority: Other Component: Serialization AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] in: org.apache.xml.serialize.BaseMarkupSerializer rev 1.42 if the text is in CDATA it is indexed from zero (0) but not from start! this causes the serialized text to be shifted when start is more than zero. See below: public void characters( char[] chars, int start, int length ) throws SAXException { ... if ( state.inCData || state.doCData ) { ... for ( int index = 0 ; index < length ; ++index ) { ch = chars[index]; .... } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
