What about dumping the contents of the TextArea into a CDATA tag
within your xml node? That way, the xml will ignore whatever is inside.

Dave
http://www.pxldesigns.com/pxlblog




--- In [email protected], "esaltelli" <[EMAIL PROTECTED]> wrote:
>
> Have you tried using xml.normalize()?  This should condense all of 
> your text nodes into a single text node.
> 
> 
> Ed
> --- In [email protected], "reflexactions" 
> <reflexactions@> 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