|
-
Apr 8th, 2005, 05:19 AM
#1
Thread Starter
Member
line break - xml
I've posted earlier about line break. I've realise what is the problem.
I have a text string. "This is line one.[carraige return code]This is line two."
I capture it, insert into MSSQL.
Then, I retrieve it, export into xml document.
Import xml document.
Those line break does not seems to work anymore.
Probably due to export into xml.
Anyway that i can still preserve the line break (carraige return).
-
Apr 11th, 2005, 03:15 AM
#2
Hyperactive Member
Re: line break - xml
You need to post some code! Where does the \r\n get lost? Have you checked if its still there after you extracted the text from Database.
How do you 'export' it to an Xml Document and how does your Xml Document look? (Structure) How do you import the data back to c#,........
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
May 10th, 2005, 05:00 AM
#3
Thread Starter
Member
Re: line break - xml
Eg. "This is Line 1.\r\nThis is Line 2"
Before exporting, c# will print out correctly,
This is Line 1.
This is Line 2
After the string, "This is Line 1.\r\nThis is Line 2" being export into xml.
and import back, output or print the string.... it is literally the string
"This is Line 1.\r\nThis is Line 2"
is there anyway to preserve the line break after xml export/import.
using replace \r\n with line break after xml export/import is not really a good idea.
because sometimes the real text might have \r\n that dont mean to be line break.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|