danny0085
August 4th, 2008, 12:41 PM
I have an XML file:
<espanol>
<cat_hos> Hospedaje </cat_hos>
<cat_ali> Alimentaci\$oacento;n </cat_ali>
</espanol>
I need to access every node and make operations
for each(var nodo:XML in myXML.elements())
{
nodo_nombre = String(nodo.name());
trace(nodo_nombre); // cat_hos
trace(myXML.nodo_nombre); // null --> what is the error?
}
<espanol>
<cat_hos> Hospedaje </cat_hos>
<cat_ali> Alimentaci\$oacento;n </cat_ali>
</espanol>
I need to access every node and make operations
for each(var nodo:XML in myXML.elements())
{
nodo_nombre = String(nodo.name());
trace(nodo_nombre); // cat_hos
trace(myXML.nodo_nombre); // null --> what is the error?
}