# Embedding HTML in XML using CDATA Problem (urgent)

**URL:** <https://forum.kirupa.com/t/embedding-html-in-xml-using-cdata-problem-urgent/205170>\
**Category:** flash\
**Created:** [October 26, 2006, 8:15pm UTC](https://forum.kirupa.com/t/embedding-html-in-xml-using-cdata-problem-urgent/205170 "2006-10-26T20:15:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikenificent](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@mikenificent](https://forum.kirupa.com/u/mikenificent)\
**Post date:** [October 26, 2006, 8:15pm UTC](https://forum.kirupa.com/t/embedding-html-in-xml-using-cdata-problem-urgent/205170/1 "2006-10-26T20:15:00Z")

</div>

Can someone help me please with this, i’m having MAJOR issues, I’ll post the code for my actionscript and my XML. Everything looks like it should work, but I still see the HTML tags in my text boxes when I play the movie. Need this ASAP. I’m just trying to get the first node figured out using this test sample. Need immidiate help, please.

Appreciate it

Actionscript

```auto
myTextField.html = true;
var myXMLObject:XML = new XML();
myXMLObject.ignoreWhite = true;
myXMLObject.load("myData.xml");
myXMLObject.onLoad = function() {
    var myText:XMLNode = myXMLObject.childNodes[0];
    if (myText.nodeName == "navigation") {
        for (var count = 0; count<myText.childNodes.length; count++) {
            var currentNode:XMLNode = myText.childNodes[count];
            set("text_"+(count+1), currentNode.childNodes[0].nodeValue);
            set("title_"+(count+1), currentNode.attributes.Title);
            myTextField.text = text_1;
            myTitleText.text = title_1;
        }
    }
};
stop();

```

XML:

```auto
<?xml version="1.0" encoding="iso-8859-1"?>
  <navigation> 
    <myText Title="News"><![CDATA[Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sodales, <b>ante in tincidunt gravida</b>, est ante lacinia nisl, sit amet rutrum nibh tellus a dui. Etiam tellus <b>lorem</b>, facilisis luctus, aliquam et, molestie ac, libero. Curabitur purus. In nec mi. Nulla elit. Suspendisse sagittis lectus sit amet nisl. <b>Vestibulum aliquet</b> tellus eget metus. In posuere neque. Praesent placerat. Maecenas libero. Donec scelerisque convallis metus.]]> </myText>
    <myText Title="BIOGRAPHY">Biography</myText>
    <myText Title="Media">This is where Media will go.</myText>
    <myText Title="Photos">This is where Photos will go.</myText>
    <myText Title="Tours">This is where Tours will go.</myText>
    <myText Title="Community">This is where a Link to the boards will go.</myText>
    <myText Title="Links">This is where Links will go.</myText>
  </navigation>

```
