By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

Multiline text in XML file

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

<Help><![CDATA[
multiline
multiline
multiline
multiline
....
]]>
</Help>
Aug 2 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
King wrote:
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>
Aug 2 '08 #2

P: n/a
King wrote:
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
Aug 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.