Multiline text in XML file

K

King

Is there any other way to define multiline text in a XML file:

<Help><![CDATA[
multiline
multiline
multiline
multiline
....
]]>
</Help>
 
Z

Zoltán Nagy

King said:
Is there any other way to define multiline text in a XML file:

<Help><![CDATA[
multiline
multiline
multiline
multiline
...
]]>
</Help>

Unless someone has to edit the XML manually (which is bad anyway):
<Tip>first line\nsecond line</Tip>
 
S

Stefan Behnel

King said:
Is there any other way to define multiline text in a XML file:

<Help><![CDATA[
multiline
multiline
multiline
multiline
...
]]>
</Help>

Yes, without the CDATA, for example. XML doesn't treat line ending characters
any different from other characters.

I have no idea what you are trying to achieve since you didn't tell us (and
this newsgroup seems the wrong place to discuss this), but maybe it's this:

<Help>
<line>text of first line</line>
<line>text of second line</line>
<line>text of third line</line>
<line>...</line>
</Help>

Stefan
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top