Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 28th, 2005, 8:17 AM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Probably not a wise approach. You might conceivably have a literal conjunction of a slash and an ess. How would you know what was what? Why don't you loop through the string, convert each character (as a byte value) to hex, and output a stream of those.
Hi how are you = 48 69 20 68 6f 77 20 61 72 65 20 79 6f 75.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 28th, 2005, 6:45 PM   #12
ronatron
Newbie
 
Join Date: Oct 2005
Posts: 2
Rep Power: 0 ronatron is on a distinguished road
string flshBody = items[xnum]["body"].InnerText;
flshBody = flshBody.Replace("\n","<br />");

.Replace creates a new string. So, flshBody is no longer referencing items[xnum]["body"].InnerText.

The InnerText is never being changed.
ronatron is offline   Reply With Quote
Old Oct 31st, 2005, 12:22 AM   #13
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
I am aware of that ronatron, I want the resulting string to be desplayed not editing the xml file. Thanks though.
bja888 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC