# XML links in flash problem

**URL:** <https://forum.kirupa.com/t/xml-links-in-flash-problem/273311>\
**Category:** Uncategorized\
**Created:** [October 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/xml-links-in-flash-problem/273311 "2008-10-14T09:49:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)\
**Post date:** [October 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/xml-links-in-flash-problem/273311/1 "2008-10-14T09:49:07Z")

</div>

Hello everyone.

I am trying to load xml links in flash by using CDATA but what I get as a result when I publish the movie is the code itself(_ **\<a href=http://www.google.com\>Google\</a\>** )_ instead of the link.

I am pretty sure that I have done something wrong with the actionscript, nodeValue part.

**[COLOR=deepskyblue]Here is the xml I am using:[/COLOR]**

```auto
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<site>
   <links>
      <link1><![CDATA[<a href="http://www.google.com">Google</a>]]></link1>
   </links>
</site>

```

**[COLOR=deepskyblue]And here is the actionscript:[/COLOR]**

```auto
myText.html = true;
myText.htmlText = xml.childNodes[0].firstChild.nodeValue; 
 
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        link1 = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            link1* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
            }
        firstImage();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("site.xml");
 
p = 0;
 
function firstImage() {
    if (loaded == filesize) {
        myText.text = link1[0]
    }
}

```

Any help appreciated.
