Hi John,
>
I am unable to reproduse your issue. All my attempts at WriteXml
correctly
produces the byte values 13 + 10 (\r\n) both between rows as well as
string
values containing line breaks.
How do you know they are converted to \n? Are you sure they aren't \n to
begin with? Some controls are able to do linebreaks with just \n
effectively
hiding the lack or \r.
Thanks for the feedback. I just tried creating a new project and lo and
behold I get the same (expected) results as you. In my own app however the
problem persists which I've verified by inspecting my strings in the
debugger (just before "WriteXml()") and then examining the resulting file
afterwards (with a hex editor). This conversion is actually backwards in any
case. Normally a LF is converted to a CR/LF on output and back to a LF on
input (when conducting "text" vs "binary" mode processing in general). Note
that I also found at least one other posting where someone reported the same
problem but they got no response. I'll just have to look deeper now that I
see the problem isn't there in a new app. Perhaps some property was turned
on that affects this though not by me AFAIK. I'll let you know the outcome.
Thanks again.