我转发我的问题,保持简单。XML检查节点Actionscript 3
我有以下XML数据
<lang>
<common>
<newnode>testTagInput</newnode>
</common>
<common>
<gameIds>
<game5>testTagInput</game5>
</gameIds>
</common>
</lang>
正如我们看到的,我有2次常见。是否有可能为两者返回common.children()?
我这个编码...
var XMLTree:Array=["common","common.newnode","common","common.gameIds","common.gameIds.game5"]
var XMLListNodes:XMLList = loadXML[XMLTree[0]].children();
for each (var subnodes:XML in XMLListNodes)
{
trace (subnodes);
}
是否有可能在同一时间返回大于1级的节点吗?怎么样 ?
你可以带一个看,我的第二个代码? – Glowhollow