Multiline text in XML file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • King

    Multiline text in XML file

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

    <Help><![CDATA[
    multiline
    multiline
    multiline
    multiline
    ....
    ]]>
    </Help>
  • =?ISO-8859-1?Q?Zolt=E1n_Nagy?=

    #2
    Re: Multiline text in XML file

    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>

    Comment

    • Stefan Behnel

      #3
      Re: Multiline text in XML file

      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

      Comment

      Working...