# How to make simple html tags in xml work?

**URL:** <https://forum.kirupa.com/t/how-to-make-simple-html-tags-in-xml-work/312746>\
**Category:** Uncategorized\
**Created:** [August 11, 2010, 8:04pm UTC](https://forum.kirupa.com/t/how-to-make-simple-html-tags-in-xml-work/312746 "2010-08-11T20:04:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![izzie](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@izzie](https://forum.kirupa.com/u/izzie)\
**Post date:** [August 11, 2010, 8:04pm UTC](https://forum.kirupa.com/t/how-to-make-simple-html-tags-in-xml-work/312746/1 "2010-08-11T20:04:38Z")

</div>

Can someone please help me how to, in a simple way, make html tags work from my xml file to flash.

My xml code is

```auto
<myfile>
<news>
<![CDATA[<br />Here comes my text where I want to place html tags and have links working like this f.ex <a href="http://www.kirupa.com" target="_blank"> kirupa.]]>
</news>
</myfile>

```

And the as3 code I have is

```auto
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("myTextFile.xml"));
                                          
function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    myTextField.text = xmlData.myfile.news.text();
trace(xmlData);
}

```

So what do I do with the code to make this work?  
Thanks
