I am getting an XML feed that I have no control over creating or changing.
<?xml version="1.0" ?>
- <root title="Goods">
- <assets>
- <row active="1" id="50">
<meta displayname="ABCs" webicon="icons/dsabc.png" /> I am trying to get these nodes
<runtime />
</row>
- <row active="1" id="51">
<meta displayname="Hat" webicon="icons/dscathat.png" />
<runtime />
</row>
- <row active="1" id="54">
<meta displayname="Pix 3" webicon="icons/szlong.png" />
<runtime />
</row>
</assets>
</root>
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var nodes = this.firstChild.childNodes.nextSibling;
numOfItems = nodes.length;
for (var i = 0; i<numOfItems; i++) {
...........
...........
xml.load("icons2.xml");
Would it be the nextSibling of firstChild.childNodes in this instance?