Solved

XML cdata

Posted on 2011-03-19
2
375 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XML error 2 41
PHP and Soap 3 51
Actionscript in Flash 3 58
what are list of ebay api errors 1 17
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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 record live broadcast.

813 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

10 Experts available now in Live!

Get 1:1 Help Now