Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/11/2007, 09:47
mount
 
Fecha de Ingreso: marzo-2007
Mensajes: 58
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: etiquetas xml

Me parece que te falta el "else": si la etiqueta está vacía, debes dar el valor string vacío a la variable ubicacion.
Código:
if (cell.firstChild && cell.firstChild.data) {
	var ubicacion = item.getElementsByTagName('ubicacion')[0].firstChild.data;
} else {
	var ubicacion = '';
}