Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

XML cdata

Hi there,

can someone tell me why my carriage returns are missing from my XML flash content?
They are there when I view offline, but when uploaded to the web the xml text flows with no line breaks.

See link below and click on 'Atoms'. If you click through the e-learning module you will see what I mean.

http://www.briancoyle.com/instruct/index.html

Thanks in advance


Brian
0
BrianJC67
Asked:
BrianJC67
1 Solution
 
AmickCommented:
Do you need to use <pre> tags or <br /> tags with your content?
0
 
deepanjandasCommented:
You carriage returns will not work but just pressing returns on keyboard. In CDATA it takes more than just a line I guess.
Try this:
<item>
 <slide>slide0.swf</slide>
  <comment><![CDATA[<span class="title">Module Topics</span><br><span class="titlechild2">Welcome to Atomic Structure. This module covers the following topics:<p><span class="titlechild">Learning Objectives</span><br><span class="titlechild2"><After completing this module, you should understand the basics of atomic structure.</span><br><p>]]>
  </comment>
</item>

Open in new window


Warm Regards
Deepanjan Das
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now