An annoying workaround is to enclose the text in parenthesis.  So:

<node>
Some Text
\r\n
\r\n
</node>

becomes

<node>
(Some Text
\r\n
\r\n)
</node>

Then you just need to pre/post process the xml/queries.  It's annoying, I
hope there's a better way, but it works perfectly.

- Dan Freiman

On 11/6/07, reflexactions <[EMAIL PROTECTED]> wrote:
>
>   I have some xml text that was saved to the server and then reloaded
> back into the application.
>
> Some text nodes represent text entered previosuly in a TextArea
> control and includes a number of trailing returns entered by the
> users that I need to keep.
>
> This saved fine to the server and also when loaded back the text
> string containing the whole xml show these nodes correctly with
> multiple /r/n i.e.
> <node>
> Some Text
> \r\n
> \r\n
> </node>
>
> But when I turn this into XML() in the application it strips all the
> trailing /r/n i.e.
> <node>SomeText</node>
>
> I have tried ignoreWhiteSpace but that doesnt achieve what I want, it
> just adds lots of additional nodes throughout the doc instead of
> leaving the \r\n within the node
>
> Any thoughts how to solve this
>
>  
>

Reply via email to