Line Feed & Carriage Return with XML?

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
 
C

Carpe Diem

I usually prepend a text node to achieve padding:

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

Kevin Spencer

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top