public void deleteTask(String id, String name) throws JAXBException, IOException{
	   Boolean deleted=false;
	 //trying to write into file
	 		FileInputStream stream = new FileInputStream("C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml");
	 		String path="C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml";
	 		
	 		//First Let's try to get all the info from the file and the include the new info		
	 		JAXBContext jaxbContext = JAXBContext.newInstance(Cal.class);
	 		// Deserialize university xml into java objects.
	 	     Cal cal = (Cal) jaxbContext.createUnmarshaller().unmarshal(stream);

	 		//if the task does not existe, let's add it
			 //With the iterator we can full fill the list that will be sent in response
		     ListIterator<Task> listIterator = cal.tasks.listIterator(); 
		     //list to full fill with the requested id
		  //   List<Task> tasksList = new ArrayList<Task>();
		     int existingTask = 0;
		     while (listIterator.hasNext()) {	   
		    	 Task task = listIterator.next();
		        	 if((task.id.equals(id))&&(task.name.equals(name)) ){
		        		 existingTask =1;
		        		 System.out.println("The task id: "+ id +" name: "+name+"  exist. inside delete method");
		        		 deleted = true;
		        	 }
		        	 if (existingTask == 1){
		 				cal.tasks.remove(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 deleted. Inside delete metho");}
		        	// return deleted;
		         }    
			//return false;
			
   }