# XML, Dynamic Text box, and URLS.. :)

**URL:** <https://forum.kirupa.com/t/xml-dynamic-text-box-and-urls/107703>\
**Category:** Uncategorized\
**Created:** [April 18, 2004, 6:03am UTC](https://forum.kirupa.com/t/xml-dynamic-text-box-and-urls/107703 "2004-04-18T06:03:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kedaeus](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Kedaeus](https://forum.kirupa.com/u/Kedaeus)\
**Post date:** [April 18, 2004, 6:03am UTC](https://forum.kirupa.com/t/xml-dynamic-text-box-and-urls/107703/1 "2004-04-18T06:03:40Z")

</div>

Okay. I’m creating a News Scroller for my schools Intranet…  
I created a VB program to open the XML file, edit it, and save it back on the server for easy editing.

Now… In flash…

I can load the XML file.  
Extract the Attributes of the nodes…  
And post that into a text box… But when I try to create links I get  
the output (to the text box) of:

\<a href=“[http://urlhere.com/news/today.html#1](http://urlhere.com/news/today.html#1)”\>Harrison Hall, Renovation Complete\</a\>

Instead of the actual link…

My AS looks like this.  
[AS]  
for(var i=0; i \< newsItem.length; i++){  
trace(“forloop position " + i);  
item\* = “\<a href=”” + newsItem\*.attributes.URL + “”\>" + newsItem\*.attributes.Subject + “\</a\>”  
content\_txt.text = content\_txt.text + item\* + "  
";  
trace(item\*);  
}  
[/AS]

In other words item\* = “anchor tag” + xmlitem + “end anchor tag” + xmlitem + “close anchor tag”

The trace functions were from an earlier bug I had: not being able to view the XML file’s contents… I haven’t removed them yet.

My question is… Am I going about this in the wrong way? Could anyone help me fix my code? It’s very frustrating… The information I got on AS’ing links in dynamic text boxes was helpful… but it didn’t get the job done.

Encode text as HTML is enabled in my dynamic textbox instanced as “content\_txt”.  
-Kedaeus-
