# XML Feeds

**URL:** <https://forum.kirupa.com/t/xml-feeds/258492>\
**Category:** flash\
**Created:** [April 24, 2008, 2:59pm UTC](https://forum.kirupa.com/t/xml-feeds/258492 "2008-04-24T14:59:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![csr500](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@csr500](https://forum.kirupa.com/u/csr500)\
**Post date:** [April 24, 2008, 2:59pm UTC](https://forum.kirupa.com/t/xml-feeds/258492/1 "2008-04-24T14:59:03Z")

</div>

Hello people,

I am having some problems gaining a response from this and am wondering what I am doing wrong.

The information can be found here, [http://www.foundation-flash.com/tutorials/xml/](http://www.foundation-flash.com/tutorials/xml/) , however for those of you too lazy to click the link, here it is.

My Flash action script is as follows

var cats\_xml = new XML();  
cats\_xml.onLoad = function(loaded){  
if (loaded){  
trace(cats\_xml.firstChild.firstChild.nodeValue);  
trace(cats\_xml.firstChild.firstChild.nextSibling.nodeValue);  
}  
}  
cats\_xml.load(“cats.xml”);

and my XML is as follows

\<cats\>  
\<title\>  
CATS!  
\</title\>  
\<cat\>  
Meow!  
\</cat\>  
\<cat\>  
Meow!  
\</cat\>  
\<cat\>  
Meow!  
\</cat\>  
\<cat\>  
Meow!  
\</cat\>  
\<cat\>  
Meow!  
\</cat\>  
\</cats\>

to the best of my knowledge this should produce an output ie trace of

CATS!  
Meow!

however when I try and publish my movie i get an output of “null”

can any one explain to me why I am not getting the desired output.  
please help as I have been trying to sort this for a couple of days now and it doing my head in.

Any help would be very much appreciated

Cameron

P.S. Please bear in mind I am fairly new to actionscript and xml so please treat me like an idiot.
