Solved

XML cdata

Posted on 2011-03-19
2
355 Views
Last Modified: 2012-05-11
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
Comment
Question by:BrianJC67
2 Comments
 
LVL 12

Expert Comment

by:Amick
ID: 35173446
Do you need to use <pre> tags or <br /> tags with your content?
0
 
LVL 17

Accepted Solution

by:
deepanjandas earned 250 total points
ID: 35173917
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now