Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Line Feed & Carriage Return with XML?

Reply
Thread Tools

Line Feed & Carriage Return with XML?

 
 
=?Utf-8?B?UmFlZCBTYXdhbGhh?=
Guest
Posts: n/a
 
      10-25-2004
Dear :

I have XML File like :

<Root>
<Body>
Large Text
</Body>
</Root>
is there a way to provide a Line Feed for the Large text like (\n\r) in many
programming languages.

Regards
 
Reply With Quote
 
 
 
 
Carpe Diem
Guest
Posts: n/a
 
      10-25-2004
I usually prepend a text node to achieve padding:

doc.AppendChild(XML.CreateTextNode( "\n\t"));

--
Jure Špik


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      10-25-2004
How about:

<Root>
<Body>
Large
Text
</Body>
</Root>

There is a line feed in the element now.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Raed Sawalha" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear :
>
> I have XML File like :
>
> <Root>
> <Body>
> Large Text
> </Body>
> </Root>
> is there a way to provide a Line Feed for the Large text like (\n\r) in

many
> programming languages.
>
> Regards



 
Reply With Quote
 
 
 
Reply

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
Mysterious Carriage Return/Line Feed characters bmcdougald@hotmail.com Java 2 08-30-2005 07:40 PM
Carriage return/line feed padded to last value in a NameValueCollection John Dalberg ASP .Net 0 01-21-2005 10:17 PM
Displaying text that contains carriage return/line feed rjweytens Java 3 07-30-2004 03:37 AM
Help: Delete a single carriage return in a file, but not a double carriage return? Steve Anderson Perl Misc 3 06-21-2004 12:48 AM
How to create carriage return or line feed or new line Dave Tichenor ASP .Net 3 02-17-2004 01:55 AM



Advertisments