# XML espertise needed please!

**URL:** <https://forum.kirupa.com/t/xml-espertise-needed-please/322212>\
**Category:** Uncategorized\
**Created:** [May 14, 2011, 12:12pm UTC](https://forum.kirupa.com/t/xml-espertise-needed-please/322212 "2011-05-14T12:12:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieldmm](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@danieldmm](https://forum.kirupa.com/u/danieldmm)\
**Post date:** [May 14, 2011, 12:12pm UTC](https://forum.kirupa.com/t/xml-espertise-needed-please/322212/1 "2011-05-14T12:12:36Z")

</div>

Hi, here’s the code I’m using to gather information from a RSS feed (I’m interested in the src content to display an image)

```auto

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://www.myfeedblahh/?feed=rss2"));

function LoadXML(e:Event):void
{
    xmlData = new XML(e.target.data);
    var xmlNs:Namespace = new Namespace("http://purl.org/rss/1.0/modules/content/");
    var p:XMLList = xmlData.channel.item.xmlNs::encoded;
    
trace(p);      
}

```

So what I guet from this trace is

```auto

<p><img class="size-full wp-image-9 alignnone" title="m" src="m.jpg" alt="" width="300" height="480" /></p>
<p>Velkommen til WordPress</p>

```

So far so good now the tricky part is that I want to access the attribute src from img.  
If i trace(p[0] is XML); i get true, but if I try to trace trace(p.img.@src); or for that matter trace(p[0].img.@src); I get nothing back what am I doing wrong??? please help I’m desperate here…
