![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Oct 2005
Posts: 2
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#13 |
|
Hobbyist Programmer
|
I am aware of that ronatron, I want the resulting string to be desplayed not editing the xml file. Thanks though.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|