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=21712>. 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=21712 XMLSerializer misses ignorableWhiteSpace when not indenting ------- Additional Comments From [EMAIL PROTECTED] 2003-07-18 15:37 ------- To add to my own report, it turns out what I did does not always work. For some reason with ignorableWhiteSpace overridden as I did I now got XML files with the <?xml...?> declaration only on the fourth line with whitespace before it for some parser pipelines (meaning non-wellformed xml output). So I now went to the following overriding method combo, which seems to work better: public void startElement(String s, String s1, String s2, Attributes attributes) throws SAXException { this.inDocument = true; super.startElement(s, s1, s2, attributes); } public void endDocument() throws SAXException { super.endDocument(); this.inDocument = false; } public void ignorableWhitespace(char[] chars, int i, int i1) throws SAXException { this._indenting = this.inDocument; try { super.ignorableWhitespace(chars, i, i1); } finally { this._indenting = false; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]