xml parsing with diferent node names
Hello,
How can I know the label of diferent node names parsing xml?
I'm using something like
this is the xml structure
<bd>
<tabela label="design"/>
<familia label="familias"/>
<tabela label="produtos"/>
</bd>
this is the as code
var myXML:XML = new XML();
myXML = XML(event.target.data);
for(var i=0; i<=myXML.length(); i++) {
trace("Nome da tabela " + myXML.tabela.label + "\n");
}
this traces my node names, but it skips the midle one, because he is not named as tabela
what I need is to know how many and what names my xml has
Thanks