Comunidad de diseño web y desarrollo en internet online

Longitud de XML

Citar            
MensajeEscrito el 23 Ene 2008 10:07 am
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);

Por brx

3 de clabLevel



 

msie
Citar            
MensajeEscrito el 23 Ene 2008 05:02 pm
lol n00b XD.

Por gustavogarzon

166 de clabLevel



 

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.