引用:http://zhidao.baidu.com/question/157215493.html
var item:XML=<item />item.@name="demo";trace(item.toXMLString());