# Parsing XML issues... help?!

**URL:** <https://forum.kirupa.com/t/parsing-xml-issues-help/288888>\
**Category:** Uncategorized\
**Created:** [May 22, 2009, 12:45pm UTC](https://forum.kirupa.com/t/parsing-xml-issues-help/288888 "2009-05-22T12:45:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshcaple](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@joshcaple](https://forum.kirupa.com/u/joshcaple)\
**Post date:** [May 22, 2009, 12:45pm UTC](https://forum.kirupa.com/t/parsing-xml-issues-help/288888/1 "2009-05-22T12:45:38Z")

</div>

My brain is just fried after a very long week of debugging someone elses code! :crying: I know this must be something obvious but I’m wanting to get the URLS.url[].link for the childnodes with id’s of ‘webTV’ & ‘webRadio’, then load the url (which will be SWFs defined in the CMS) into a movie. XML attached.  
Please point out my amazing stupidity & set me back on the path of the functional script!

AS code;

```auto
//call the xml
var tvLoader:URLLoader = new URLLoader(); 
var tvData:XML = new XML(); 
 
tvLoader.addEventListener(Event.COMPLETE, LoadtvXML); 
 
if (!root.loaderInfo.parameters.urlXML)
 tvLoader.load(new URLRequest("highlight_block.xml"));
else
 tvLoader.load(new URLRequest(root.loaderInfo.parameters.urlXML));
 
function LoadtvXML(e:Event.target.data) 
tvData = new XML(e.target.data); 
var.urls:XMLList = tvData.urls.url;
//load tv url
 if (urls[0].link != "")
 {
  var loaderTVUrl:Loader = new Loader();
  var urlTV:URLRequest = new URLRequest(urls[0].link);
 }
} 
 
//embed the called swf
var loaderTV:Loader = new Loader();
loaderTV.addEventListener(Event.COMPLETE, completeHandler);
loaderTV.load(new URLRequest(urlTV));
movie_webtv.addChild(loader);
function completeHandler(event:Event):void{
 trace("completeHandler: " + event);
}

```
