myUnmarshaller.setWhitespacePreserve(true);
--Keith
sire chembiparambil wrote:
>
> We recently upgraded from castor-0.9.4.3 to castor-0.9.5.3. As a part of
> the upgrade I also had to add two jar files jakarta-regexp-1.3.jar and
> jakarta-oro-2.0.8.jar to the class path.
>
> Now when I use the Unmarshaller class to unmarshall an xml string , it is
> stripping off the newline characters present inside element nodes.
> so an element like
> <Message>line 1
> line 2</Message>
> is after unmarshalling retrives the value "line 1line 2" instead of line1\n
> line2"
>
> I tried to set the "org.exolab.castor.indent=true" but that did not have
> any effect. Has anyone else observed similar behaviour.
> Any inputs are much appreciated
>
> Sire
>
> -----------------------------------------------------------
> 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