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=9793>. 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=9793 setPreserveSpace(true) doesn't play nice with setIndenting(true) [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] OS/Version|MacOS X |All Priority|Other |Medium Platform|Macintosh |All ------- Additional Comments From [EMAIL PROTECTED] 2002-10-16 12:23 ------- The problem comes from the fact that the XMLSerializer prevents the indent option to be used when the preserve for whitespaces is set to true. The main reason for that is that there was a concern for not outputting big lines with lot of whitespaces. The code assumes that if preserveWhitespaces is set to true then XML is already nicely indented so no work should be done. However it can happens that your XML is produced by a third party tool (like a data-binding framework for instance) and that you want the content of all your elements to support whitespaces and then use the Serializer to indent nicely your code. In those cases it is very restrictive to define local 'xml:space' attributes. The above patch fixes the issue for XMLSerializer and allows setPreserveSpace and setIndent to cohabitate. Note: I am not sure of possible side effects of that patch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
