Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/07/2011, 03:50
iPhone5
 
Fecha de Ingreso: julio-2011
Mensajes: 5
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: Parsear XML con dos etiquetas con el mismo nombre

SOLUCIONADO

Lo hice así:

if (titulos[i].firstChild && titulos[i].firstChild.data )
{
texto.push(titulos[i].firstChild.data);

}else{

if (i == 0){ //primer titulo vacio
texto.push("");
}else{
texto.push(" - ");
}
}
}
titulo = texto.join(" ");


Saludos y gracias! :D