Line Feed & Carriage Return with XML?

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 25, 2004.

  1. 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
    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 25, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    Carpe Diem Guest

    I usually prepend a text node to achieve padding:

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

    --
    Jure ┬ępik
    Carpe Diem, Oct 25, 2004
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:...
    > 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
    Kevin Spencer, Oct 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave Tichenor
    Replies:
    3
    Views:
    32,130
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. John Dalberg
    Replies:
    0
    Views:
    468
    John Dalberg
    Jan 21, 2005
  3. rjweytens
    Replies:
    3
    Views:
    8,095
    rjweytens
    Jul 30, 2004
  4. Replies:
    2
    Views:
    11,262
    Boudewijn Dijkstra
    Aug 30, 2005
  5. Steve Anderson
    Replies:
    3
    Views:
    251
    Steve Anderson
    Jun 21, 2004
Loading...

Share This Page