Hi Arnaud,
Thanks for your answer.
But now i've got another problem, it seems that indent option and preserveSpace
option are nor working together.
I want to obtain something like that
<begin>...</begin>
<Description>descripion begin
description middle
description end </Description>
<end>...</end>
and i only obtain
<begin>...</begin>
<Description>descripion begin description middle description
end</Description>
<end>...</end>
with indent=true
and
<begin>...</begin><Description>descripion begin
description middle
description end</Description><end>...</end>
with both options set to true.
Is there a solution to get the result i want?
Matthieu
"Arnaud Blandin" <[EMAIL PROTECTED]> on 19/07/2002 15:25:17
Veuillez r�pondre � [EMAIL PROTECTED]
Pour : [EMAIL PROTECTED]
cc : (ccc : Matthieu Fuzellier/ALCATEL-SPACE)
Objet : Re: [castor-dev] Problem preserving line breaks
Hi Matthieu,
You should instantiate your own serializer and set the option
preserveSpace. For more information on how to set up your own serializer
in the Marshaller please refer to the searchable archive.
Sorry for not pointing you to a documentation, we know that we are
lacking of documentation but unfortunately time doesn't allow us to
write it.
Arnaud
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Problem preserving line breaks
>
>
> Hello,
>
> here is my problem :
> I've got a field Description that contains line breaks, for example
>
> <Description>descripion begin
> description middle
> description end </Description>
>
> I have no problem for marshalling this field into a String, line
> breaks are
> preserved, but when i unmarshall my class, all line breaks disapear
> :
>
> <Description>descripion begin description middle
> description
> end</Description>
>
> What may I do?
> Thanks for help
>
>
> ALCATEL SPACE INDUSTRIES
>
> -----------------------------------------------------------
> 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
ALCATEL SPACE INDUSTRIES