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=22310>. 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=22310 XMLSerializer.setPreserveSpace(true) destroys indentation Summary: XMLSerializer.setPreserveSpace(true) destroys indentation Product: Xerces2-J Version: 2.4.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Serialization AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] My problem is, that text nodes containing new lines (carriage returns) are not printed with XMLSerializer with these new/empty lines. instead, a space is printed. so i called outputFormat.setPreserveSpace(true) and voila: the new lines are preserved and printed ... but the indentation is gone! outputFormat.setIndenting(true) doesn't help - indenting just returns when calling setPreserveSpace(false) ... but this removes the wanted new lines in the text nodes ... :-( it seems that indenting and preserveSpace is not compatible! so, how can we indent and still preserve the spaces/new lines of text nodes? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
