# Read a Link in AS from XML

**URL:** <https://forum.kirupa.com/t/read-a-link-in-as-from-xml/318315>\
**Category:** flash\
**Created:** [January 16, 2011, 7:18pm UTC](https://forum.kirupa.com/t/read-a-link-in-as-from-xml/318315 "2011-01-16T19:18:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treeleaf20](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Post date:** [January 16, 2011, 7:18pm UTC](https://forum.kirupa.com/t/read-a-link-in-as-from-xml/318315/1 "2011-01-16T19:18:29Z")

</div>

All,  
I’m trying to have my script read an XML file and in the XML file I’m trying to put a link. If I have just regular text in the XML file it works fine. If I have it like the following it works fine:

```auto
<images imagesSmall="gallery/tfile_small_1_4.jpg" imagesBig="gallery/tfile_gall_1_4.jpg" imageTitle="This is a test4"/>

```

Then I’m trying to make the title a link. So if I do something like:

```auto
<images imagesSmall="gallery/tfile_small_1_4.jpg" imagesBig="gallery/tfile_gall_1_4.jpg" imageTitle="<a href="espn.com">ESPN</a>"/>

```

I get the message that my XML is malformed. How can I include some HTML in this field? Also I my AS code as htmlText like the following:

```auto
MovieClip(root).all_gallery.all_pics.gall.my_txt.htmlText

```

Any help would be greatly appreciated. Thanks in advance!
