public Task updateTaskByIdName(	String id,
								String name, 
								String date,
								String status,
								String required,
								String description,
								String attendants)throws JAXBException, IOException{
	//Check this line
			//FileInputStream stream = new FileInputStream("/WEB-INF/task-manager-xml.xml");
			
			FileInputStream stream = new FileInputStream("C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml");
			String path="C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml";
			// create an instance context class, to serialize/deserialize.
			JAXBContext jaxbContext = JAXBContext.newInstance(Cal.class);
			// Deserialize university xml into java objects.
		     Cal cal = (Cal) jaxbContext.createUnmarshaller().unmarshal(stream);

		    //With the iterator we can full fill the list that will be sent in response
		     ListIterator<Task> listIterator = cal.tasks.listIterator(); 
		     int existingTask = 0;
		     Task task = null;
		         while (listIterator.hasNext()) {
		        	 task = listIterator.next();
		        	 if(task.id.equals(id)&& task.name.equals(name)){
		        		
		        		 //deleteTask(id, name);		        		
		        		
		        		
		     			cal.tasks.remove(task);
		     			
		     			//existingTask=1;
		        		 task.id = id;
			        		task.name = name;
			        		task.date = date;
			        		task.status=status;
			        		task.required=required;
			        		task.description=description;
			        		task.attendants=attendants;
		     			cal.tasks.add(task);					
		     			
		     			 // Serialize university object into xml.            
		     	        StringWriter writer = new StringWriter();

		     	        // We can use the same context object, as it knows how to 
		     	        //serialize or deserialize University class.
		     	        jaxbContext.createMarshaller().marshal(cal, writer);				       
		     	       SaveFile(writer.toString(), path);	       
		     	      System.out.println("The task id: "+ id +" name: "+name+" has been updated. inside update method ");
		        		}
		        	 }  
		         
		        /* if (existingTask == 1){
		        		//preparing the updated object to be written
		        		 //
			        		task.id = id;
			        		task.name = name;
			        		task.date = date;
			        		task.status=status;
			        		task.required=required;
			        		task.description=description;
			        		task.attendants=attendants;
		     			cal.tasks.add(task);					
		     			 // Serialize university object into xml.            
		     	        StringWriter writer = new StringWriter();

		     	        // We can use the same context object, as it knows how to 
		     	        //serialize or deserialize University class.
		     	        jaxbContext.createMarshaller().marshal(cal, writer);				       
		     	       SaveFile(writer.toString(), path);	       
		     	      System.out.println("The task id: "+ id +" name: "+name+" has been saved. inside update method ");
		     		}*/
		        	// System.out.println("The task: "+id+" name: "+name+ " has been updated. inside update method");

		         
		         
	return null;	 
	
	
		
		
}