public void saveScheduleVector() {
		String savePath =  new Control_GetPath().getStreamRipStarPath();
		XMLOutputFactory outputFactory = XMLOutputFactory.newInstance(); 
		
		try {
			XMLEventWriter writer = outputFactory.createXMLEventWriter(
					new FileOutputStream(savePath+"/Scheduls.xml" ), "UTF-8"  );
			XMLEventFactory eventFactory = XMLEventFactory.newInstance();
			
			//header for the file
			XMLEvent header = eventFactory.createStartDocument();
			XMLEvent startRootSettings = eventFactory.createStartElement( "", "", "SchdedulJobs" );
			XMLEvent lastID = eventFactory.createAttribute( "lastID",  String.valueOf( SchedulJob.lastID));
			writer.add( header ); 
			writer.add( startRootSettings );
			writer.add( lastID );
			
			for(int i = 0; i < schedulVector.capacity();i++) {
				XMLEvent Job = eventFactory.createStartElement( "", "", "SchedulJob" );
				XMLEvent streamID = eventFactory.createAttribute( "streamID",  String.valueOf( schedulVector.get(i).getStreamID())); 
				XMLEvent schedulID = eventFactory.createAttribute( "schedulID",  String.valueOf( schedulVector.get(i).getSchedulID())); 
				XMLEvent startTime = eventFactory.createAttribute( "startTime",  String.valueOf( schedulVector.get(i).getStartTime())); 
				XMLEvent stopTime = eventFactory.createAttribute( "stopTime",  String.valueOf( schedulVector.get(i).getStopTime())); 
				XMLEvent howOftenID = eventFactory.createAttribute( "howOftenID",  String.valueOf( schedulVector.get(i).getJobCount())); 
				XMLEvent enableJob = eventFactory.createAttribute( "enableJob",  String.valueOf( schedulVector.get(i).isJobenabled())); 
				XMLEvent comment = eventFactory.createAttribute( "comment",  String.valueOf( schedulVector.get(i).getComment()));
				writer.add( Job ); 
				writer.add( streamID ); 
				writer.add( schedulID ); 
				writer.add( startTime ); 
				writer.add( stopTime ); 
				writer.add( howOftenID ); 
				writer.add( enableJob ); 
				writer.add( comment ); 
			}
			
			XMLEvent endRoot = eventFactory.createEndElement( "", "", "Settings" ); 
			XMLEvent endDocument = eventFactory.createEndDocument();

			writer.add( endRoot ); 
			writer.add( endDocument ); 
			writer.close();

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (XMLStreamException e) {
			e.printStackTrace();
		} 
	}