Line Feed & Carriage Return with XML?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
I usually prepend a text node to achieve padding:

doc.AppendChild(XML.CreateTextNode( "\n\t"));
 
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top