# Xml link not working

**URL:** https://forum.kirupa.com/t/xml-link-not-working/167983
**Category:** Uncategorized
**Created:** [November 2, 2005, 10:45pm UTC](https://forum.kirupa.com/t/xml-link-not-working/167983 "2005-11-02T22:45:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [November 2, 2005, 10:45pm UTC](https://forum.kirupa.com/t/xml-link-not-working/167983/1 "2005-11-02T22:45:07Z")

</div>

i cant get my link to work in this. does anyone have a better way? here it is

as

```auto
 myXML = new XML();
    myXML.ignoreWhite = true;
    myXML.load('http://media.q101.com/av/flash/NewMusicFirst/rL.xml');
    myXML.ref = this;
    myXML.onLoad = function (succes) {
      var v2 = this;
      if (succes) {
        var v3 = v2.firstChild;
        nodes = v3.childNodes;
        var v1 = 0;
        while (v1 < nodes.length) {
          v2.ref['Title_txt' + v1].text = nodes[v1].attributes.name;
          subnodes = nodes[v1].childNodes;
          v2.ref['link' + v1] = subnodes[0].firstChild.toString();
		  trace(subnodes[0].firstChild);
		  v2.ref['holder_mc' + v1].picHolder_mc.loadMovie(subnodes[1].firstChild.toString());
		  trace(v2.ref['holder_mc' + v1]);
		  v2.ref['holder_mc' + v1].hitArea = v2.ref['holder_mc' + v1].hit_mc;
		  v2.ref['holder_mc' + v1].hit_mc._visible = false;
		  v2.ref['holder_mc' + v1].onPress = function () {
		  getURL(v2.ref['link' + v1]);
		  }
          ++v1;
        }
      } else {
        trace('Error loading XML document');
      }
    };

```

xml

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data[
	<!ELEMENT title (link, image)>
	<!ATTLIST title name CDATA #REQUIRED>
	<!ELEMENT link (#PCDATA)>
	<!ELEMENT image (#PCDATA)>

]>
<data>
	<title name="IT'S NEW DAMMIT">
		<link>"http://www.q101.com/airstaff/sherman_newdammit.aspx"</link>
		<image>http://www.q101.com/pics/misc/dammit_fs.jpg</image>
	</title>
	<title name="LOCAL MUSIC MAILROOM">
		<link>"http://www.q101.com/airstaff/sherman_newdammit.aspx"</link>
		<image>http://www.q101.com/pics/misc/local.jpg</image>
	</title>
	<title name="VIDEOS">
		<link>http://www.q101.com/airstaff/sherman_newdammit.aspx</link>
		<image>http://www.q101.com/pics/misc/video.jpg</image>
	</title>
</data>
</data>

```
