1
<top>
<item link="http://www.google.be"><![CDATA[test]]></item>
<item link="http://www.google.be"><![CDATA[test]]></item>
<item bold="true" link="http://www.google.be"><![CDATA[test]]></item>
</top>
我需要获得所有属性(包括键和值)AS3:从XML中的所有键+属性值
for each (var item : XML in data.item)
{
trace(item.attributes().name());
}
给出了这样的错误
TypeError: Error #1086: The name method only works on lists containing one item.
位于3项