I'll try to ask this in a way that makes some sense.
I have an RSS feed, within Flex I have connected to the feed via HTTPService, the XML structure is as follows (not exact, but for the purpose of the question). I am able to walk down the xml and access the data within the title and link nodes with success but when I get the the description node and try to access the img and src attributes within it, I haven't had any success. Reading about parsing with e4x the example I get is:
var xList:XMLList = xData.channel.item.description.(attribute("src"));
or
var xList:XMLList = xData.channel.item.description.(@src);
I'm lost at this point, not sure where I go from here and would appreciate some direction at this point.
<rss>
<channel>
<item>
<title><![CDATA[some text]]></title>
<link><![CDATA[a link]]></link>
<description><![CDATA[<table border="0" cellpadding="8"><tr><td width="80px"><a href="http://anAddress"><img border="0" src="http://anAddress.jpg"></a></td><td><strong>someText</strong><br>someText<br>someText<br><a href="http://anAddress">someText</a> | <a href="http://anAddress">someText</a></td></tr></table>]]></description>
</item>
</channel>
<fx:Script>
<![CDATA[
[Bindable]
private var xData:XML;
import mx.events.FlexEvent;
import mx.rpc.events.ResultEvent;
protected function appCompleteHandler(event:FlexEvent):void{
myService.send();
}
private function getList():void{
var xList:XMLList = xData.channel.item.description;
output.text = xList.toString();
}
private function rssResult(event:ResultEvent):void{
xData = event.result as XML;
}
]]>
</fx:Script>
<s:controlBarContent>
<s:Button label="Get List" click="getList()"/>
<s:Button label="Change Data"/>
</s:controlBarContent>
<s:TextArea id="output" width="100%" height="100%"
text="{xData.toString()}" fontSize="16"/>