def listarComentario(request,nickName):

    nickName = str (nickName)
    elComentario = GestionComentario.Comentario()
    listaDeComentarios = GestionComentario.listaComentario(nickName)
	
    if  listaDeComentarios == "FALSE":	
        return render_to_response('errorMensaje.xml', {'errorMensaje': "Error no se encuentran comentarios para esta persona"},mimetype='application/xml')
    else:
        datos = "<listaComentario>"
    	i = 0
        while i < len(listaDeComentarios):
            valores = listaDeComentarios[i].split(':')
	    subetiqueta = "\n     <Comentario>"
	    identificador = "\n     <idComentario>"+valores[0]+"</idComentario>"
	    usuario = "\n     <nickName>"+valores[1]+"</nickName>"
	    texto = "\n     <texto>"+valores[2]+"</texto>"
	    token = "\n     <token>"+valores[3]+"</token>"
	    meGusta = "\n     <meGusta>"+valores[4]+"</meGusta>"
	    noMeGusta = "\n     <noMeGusta>"+valores[5]+"</noMeGusta>"
	    subetiqueta2 = "\n     </Comentario>"
	    datos = datos + subetiqueta+ identificador + usuario + texto + token + meGusta + noMeGusta + subetiqueta2
	    i = i + 1
	datos = datos + "\n</listaComentario>"
	return HttpResponse(datos, content_type= "application/xml")