Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2010, 20:18
Avatar de mortiprogramador
mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 7 meses
Puntos: 214
Respuesta: Ayuda.. lector de xml problemita

hola
no entiendo bien lo que pretendes, será cambiar el orden de los datos que vienen del xml?
has intentado esto?

Código actionscript:
Ver original
  1. fecha1 = noticias_xml.firstChild.childNodes[2].firstChild.firstChild.nodeValue;
  2.             //Se accede al segundo hijo de elemento [noticia] y se recupera el valor del primer elemento de [mensaje]
  3.         mensaje1 = noticias_xml.firstChild.childNodes[2].firstChild.nextSibling.firstChild.nodeValue
  4.         fecha2 = noticias_xml.firstChild.childNodes[1].firstChild.firstChild.nodeValue;
  5.             //Se accede al segundo hijo de elemento [noticia] y se recupera el valor del primer elemento de [mensaje]
  6.         mensaje2 = noticias_xml.firstChild.childNodes[1].firstChild.nextSibling.firstChild.nodeValue
  7.         fecha3 = noticias_xml.firstChild.childNodes[0].firstChild.firstChild.nodeValue;
  8.             //Se accede al segundo hijo de elemento [noticia] y se recupera el valor del primer elemento de [mensaje]
  9.         mensaje3 = noticias_xml.firstChild.childNodes[0].firstChild.nextSibling.firstChild.nodeValue
  10.                 //Se accede al último hijo de elemento [noticia] y se recupera el valor del primer elemento de [imagen]
  11.         flyer1 = noticias_xml.firstChild.childNodes[2].lastChild.firstChild.nodeValue
  12.         flyer2 = noticias_xml.firstChild.childNodes[1].lastChild.firstChild.nodeValue
  13.         flyer3 = noticias_xml.firstChild.childNodes[0].lastChild.firstChild.nodeValue

comentas
saludos
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com