as3.0 xml set attribute

引用:http://zhidao.baidu.com/question/157215493.html

var item:XML=<item />
item.@name="demo";
trace(item.toXMLString());
原文地址:https://www.cnblogs.com/sode/p/2842032.html