Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/01/2008, 04:10
braispenela
 
Fecha de Ingreso: enero-2008
Mensajes: 6
Antigüedad: 16 años, 2 meses
Puntos: 0
Longitud de XML

No consigo saber la longitud que tiene miXML me pose en el trace: undefined
Este es el codigo que uso.

miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function(leer) {
if (leer) {
i = 0;
nodosxml();
} else {
trace("No se puede leer el archivo XML");
}
};
function nodosxml() {
txtmanzana = miXML.firstChild;
txtidentificador = miXML.firstChild.childNodes[i];
txtnumero = txtidentificador.childNodes[0].attributes.id;
txtfotoalzado = txtidentificador.childNodes[1].attributes.id;
}
miXML.load("fotoalzados.xml")
longitud = miXML.firstChild.childNodes.length;
trace(longitud);