Anand,
Castor doesn't provide a way to do this directly. Castor uses the Xerces
serializers for writing XML files. I'm also not sure if Xerces is using
the line.separator property from System class, or if it's using '\n'
directly. If it's using the line.separator property, then you could
simply change that property. If not, then you may want to look into
whether or not Xerces Serializers provides this capability.
If the Xerces serializers provide this capability then you can configure
the serializer directly and then pass in the serializers associated
ContentHandler or DocumentHandler to the Marshaller.
--Keith
"Narayan, Anand" wrote:
>
> When using the marshaller to write the output xml to a file
> the file contains only linefeed (\n) characters to mark end of lines.
> Is there any way to tell the Marshaller to insert a \r\n to denote
> end of lines.
>
> Any help is much appreciated.
>
> Thanks
> Anand Narayan
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev