Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Line Feed & Carriage Return with XML? (http://www.velocityreviews.com/forums/t89385-line-feed-and-carriage-return-with-xml.html)

=?Utf-8?B?UmFlZCBTYXdhbGhh?= 10-25-2004 12:07 PM

Line Feed & Carriage Return with XML?
 
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

Carpe Diem 10-25-2004 01:23 PM

Re: Line Feed & Carriage Return with XML?
 
I usually prepend a text node to achieve padding:

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

--
Jure Špik



Kevin Spencer 10-25-2004 02:07 PM

Re: Line Feed & Carriage Return with XML?
 
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" <RaedSawalha@discussions.microsoft.com> wrote in message
news:4C54941F-FDBC-4A5C-B467-1FEDEC728C2C@microsoft.com...
> 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





All times are GMT. The time now is 07:56 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57