Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/12/2004, 17:57
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
Prueba algo asi..

Código:
function crearMenu(nodo) {
	for (var i = 0; i<nodo.childNodes.length; i++) {
		if (nodo.childNodes[i].hasChildNodes()) {
			if (nodo.childNodes[i].attributes.texto != undefined) {
				trace(nodo.childNodes[i].attributes.texto);
				crearMenu(nodo.childNodes[i]);
			} else {
				trace("   => "+nodo.childNodes[i].firstChild);
			}
		}
	}
}
var a = new XML();
a.ignoreWhite = true;
a.load("kill.xml");
a.onLoad = function() {
	crearMenu(a.firstChild);
};
Con el Mismo XML que publicaste...