日期:2014-05-17 浏览次数:20600 次
<root>
<a1>
<b1>aaa</b1>
<b2>bbb</b2>
</a1>
<a1>
<b1>aaa</b1>
<b2>bbb</b2>
</a1>
</root>
在返回方法里:
public function result(event:ResultEvent):void{
var resultxml:XML = event.result as XML;
for each(var element:XML in resultxml.elements()){
var b1:String = element.b1.toString();
var b2:String = element.b2.toString();
Alert.show(b1);
}
}