2010-11-30 110 views
0

让图片你好我从Twitter上原子饲料,每个条目看起来是这样的:从Twitter的饲料

<entry> 
    <id>tag:search.twitter.com,2005:9708181705990144</id> 
    <published>2010-11-30T20:39:45Z</published> 
    <link type="text/html" href="http://twitter.com/eva_starlily/statuses/9708181705990144" rel="alternate"/> 
    <title>@sarahpalinusa If I'd used language like Willow did, for ANY reason whatsoever, my Dad would have grounded me for months. Learn to parent.</title> 
    <content type="html">&lt;a href=&quot;http://twitter.com/sarahpalinusa&quot;&gt;@sarahpalinusa&lt;/a&gt; If I&amp;apos;d used language like Willow did, for ANY reason whatsoever, my Dad would have grounded me for months. Learn to parent.</content> 
    <updated>2010-11-30T20:39:45Z</updated> 
    <link type="image/png" href="http://a0.twimg.com/profile_images/1179401088/b6c2b6ec-3432-476b-9ded-473986f12fd5_normal.png" rel="image"/> 
    <twitter:geo> 
    </twitter:geo> 
    <twitter:metadata> 
     <twitter:result_type>recent</twitter:result_type> 
    </twitter:metadata> 
    <twitter:place> 
     <twitter:id>8c9bcefd88d617fe</twitter:id> 
     <twitter:full_name>Greenwood - Coxwell, Toronto</twitter:full_name> 
     <twitter:type>neighborhood</twitter:type> 
    </twitter:place> 
    <twitter:source>&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;</twitter:source> 
    <twitter:lang>en</twitter:lang> 
    <author> 
     <name>eva_starlily (Laura)</name> 
     <uri>http://twitter.com/eva_starlily</uri> 
    </author> 
    </entry> 

现在我想有从第二link标签至极的网址是海报图像。 我如何在as3中选择它?我试过以下内容:

for each(var entryXML:XML in resultXML.rootNamespace::entry) 
      { 
        trace(entryXML.rootNamespace::[email protected]); 


      } 

但是这也给了我第一个链接的href。那么如何过滤这个,所以我只能从第二个链接获取href?

回答