Adding an xml:space="preserve" to your XML should help. Castor does,
indeed, respect that instruction to preserve whitespace.

Regards
Werner

pinolino wrote:
> Hi,
> 
> i have an object and marshal it into xml. The result than looks something
> like the following:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <myobject>
>   <mykey>TEXT1</mykey>
>   <text>This is my text.
> My text has newlines inside.
> All newlines are correctly in XML like in the object-text before. 
>   </text>
> </myobject>
> 
> But if i now want to unmarshal this xml, all the newlines inside the tags
> <text></text> are getting lost!
> But i need the text like it was before with newlines.
> 
> So i hope, someone can help me. I dont know what i'm doing wrong.
> Thanks.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to