I just searched the bug database. You can comment on this bug as well

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9793


On Monday, October 7, 2002, at 03:08  PM, [EMAIL PROTECTED] 
wrote:

> Hi,
>    I'm using Castor from Exolab group which use Xerces. I have problem 
> in
> preserving line breaks in text content while settng indent for xml 
> output.
> Here is the
> code:
>
>      OutputFormat format = new OutputFormat();
>      format.setMethod(Method.XML);
>      format.setPreserveSpace(true);
>      format.setIndenting( true );
>      format.setIndent( 2 );  // 2-space indention
>      format.setLineWidth( 16384 );  // As large as needed to prevent
> linebreaks in text nodes
>      XMLSerializer serializer = new XMLSerializer( new
> FileWriter(OutFileName), format);
>
>   This code, while preserving line breaks in text content in xml, 
> doesn't
> set indent
> properly. If I remove format.setPerserveSpace(true), it sets indent
> properly but the line
> breaks in text content are not retained. Does anyone have the same 
> problem?
>   Thanks in advance.
>
> Ho-chun
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to