Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > xmlDocument.Save "
" getting changed changed to "&#10"

Thread Tools

xmlDocument.Save "
" getting changed changed to "&#10"
Posts: n/a

I'm using xmlDocument.Save(xmlTextWriter) to create an Excel-readable
file. All works well, except where I've replaced the carriage return
chars in the .innertext to XML-compliant "&#10"; It gets changed to
"&#10" and doesn't render new lines in the Excel sheet.

Can anyone help?

Many thanks,

Simon Lane

Reply With Quote
Posts: n/a

The XML reader can't handle ampersands. Before you save it somewher
you have to replace the ampersand characters:

replace (strMyString, "&", "&").

Then when you are reading it back out - to display on the screen o
whatever you need to put the ampersand character back so it'

replace (strMyString, "&", "&").

If the XML reader comes across an ampersand character it just stops.

Hope this helps

Rosanne's Profile:
View this thread:

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changed state to up changed state to down FastEthernet LINEPROTO-5-UPDOWN Cisco 3 03-07-2007 06:06 PM
scroll position is changed when style is changed? mxbrunet Javascript 1 11-03-2006 03:40 AM
FTP File Transfer; file contents getting changed ? Sriram Java 14 09-13-2004 10:45 AM
getting notification when file(s) have changed in directory Sam Su Java 0 05-17-2004 05:25 PM
Re: I've changed, why am I not getting mail? Jimchip Computer Support 0 07-24-2003 10:30 PM