PDA

View Full Version : Flash reading from XML containing CDATA Tag



kellydrennann
09 Dec 2010, 02:19 PM
Hello,

I am trying to get a gallery template running that's using an XML file to load images and thumbnails. That part works fine but I am having an issue with the section that loads the info abut the photo. In the gallery there is a slide window that when you click info it slides up and displays text showing the info from the XML. It uses a CDATA tag. The cdata tag surrounding the title works fine however the second CDATA for the info that's displayed under the title on that slide window is empty. Nothing is displayed... I know text can be displayed here because it originally had text that I am trying to change below is the complete XML contents.


<?xml version="1.0" encoding="utf-8" ?>
<root>
<config>
<music enable="1" firstStart="1" path="track1.mp3"/>
<autoplay enable="1" firstStart="1" />
<full enable="1" />
<background enable="1" bgposition="extended" path="bgr.jpg"/>
<colorConfig colorBg="#161617"/>
</config>
<category_list>
<category_image name="Gallery 1" >
<items>

<item id="1" reference="" media="im1.jpg" thumb="thumb1.jpg">
<title><![CDATA[Photo Title 1]]></title>
<text><p>Click this to continue.</p>></text>
</item>

<item id="2" reference="" media="im2.jpg" thumb="thumb2.jpg">
<title><![CDATA[Photo Title here *Works]]></title>
<description><![CDATA[<p><b>Bold Text Does not Show</b>My Text here but i can not see it</p>]]></description>
</item>

</items>

</category_image>
</category_list>
</root>