hi guys, i’m having the following problem:
i have an xml like this and when using xpath i cant retrieve the “nombre”'s attribute
<?xml version="1.0" encoding="UTF-8"?>
<solem>
<seccion nombre="equipo"></seccion>
<seccion nombre="productos"></seccion>
<seccion nombre="clientes"></seccion>
<seccion nombre="soluciones"></seccion>
</solem>
actionscript used:
import mx.xpath.XPathAPI;
var menu:Array = XPathAPI.selectNodeList(this.firstChild, "/solem/*");
for (var i = 0; i<menu.length; i++) {
trace(XPathAPI.selectSingleNode(this.firstChild, "/solem/seccion").attributes.nombre);
}
it traces me
equipo
equipo
equipo
equipo
any hints about this??
thanks