Kieth,
I tried this too, and it does not work. I downgraded castor to version
castor-0.9.5.2 and it works fine with that.
Could the setWhitespacePreserve() be the culprit ?
Sire Chembiparambil
Keith Visco
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
om> cc:
Subject: Re: [castor-dev] Newlines
being stripped from element value
05/06/2004 02:13
AM
Please respond to
castor-dev
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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
- [castor-dev] Newlines being stripped from element valu... sire chembiparambil
- Re: [castor-dev] Newlines being stripped from ele... Keith Visco
- Re: [castor-dev] Newlines being stripped from ele... sire chembiparambil
- Re: [castor-dev] Newlines being stripped from ele... sire chembiparambil
