fallo mio donde ponia: parseXml(raw);
es this.parseXml(raw); prueba asi, un saludo Joseba Alonso www.sidedev.net www.5dms.com ----- Original Message ----- From: "Diego Ponce de Le�n" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 13, 2004 10:18 AM Subject: Re: [ASNativos] CDATA gracias Joseba por la explicaci�n. Qued� todo perfectamente entendido. Pero ahora puse el c�digo del onData y se me ha ido todo al traste, no funciona nada, es decir, al publicar, en todos los textfields sale "undefined". Os pongo aqui el c�digo, pero tambi�n os he colgado los archivos por si quereis hecharle un vistazo en http://www.xleon.net/as/fichaPilotos.zip function cargaDatos(n){ nombreT = mi_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue edadT = mi_xml.firstChild.childNodes[n].childNodes[1].firstChild.nodeValue palmaresT = mi_xml.firstChild.childNodes[n].childNodes[2].firstChild.nodeValue temporadaT = mi_xml.firstChild.childNodes[n].childNodes[3].firstChild.nodeValue //temporadaT.split("<").join("<").split(">").join(">").split(""") .join("\"").split("&").join("&"); nombre.text = nombreT; edad.text = edadT; palmares.htmlText = palmaresT; temporada.htmlText = temporadaT; } var mi_xml = new XML(); mi_xml.onData = function(raw){ if(raw){ raw.split("\r\n").join("\r"); parseXml(raw); } this.onLoad(raw != null); } mi_xml.onLoad = function(ok){ if(!ok){trace("Ocurrio un error")} } mi_xml.load("fichaPilotos.xml"); mi_xml.ignoreWhite = true; ========================== segun como est� no funciona pero si le quito el onData si �Qu� he hecho mal? ---------------------------------- Lista ASNativos:[EMAIL PROTECTED] http://www.5dms.com/listas ---------------------------------- ---------------------------------- Lista ASNativos:[EMAIL PROTECTED] http://www.5dms.com/listas ----------------------------------

