Здравствуйте, у меня есть твит атома из твиттера, и каждая запись выглядит так:
<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"><a href="http://twitter.com/sarahpalinusa">@sarahpalinusa</a> If I&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><a href="http://twitter.com/">web</a></twitter:source>
<twitter:lang>en</twitter:lang>
<author>
<name>eva_starlily (Laura)</name>
<uri>http://twitter.com/eva_starlily</uri>
</author>
</entry>
Теперь я хотел бы получить URL-адрес из второго тега ссылки, который является изображением постера.
Как я могу выбрать это в as3? Я попробовал следующее:
for each(var entryXML:XML in resultXML.rootNamespace::entry)
{
trace(entryXML.rootNamespace::link.@href);
}
Но это также дает мне ссылку из первой ссылки. Так, как я могу отфильтровать это, чтобы я получил только href от второй ссылки?