System.out.println("Saving to file " + JFritz.CALLS_FILE);
Debug.msg("Saving to file " + JFritz.CALLS_FILE);
	public void saveToXMLFile() {		System.out.println("Saving to file " + JFritz.CALLS_FILE);		FileOutputStream fos;		try {			fos = new FileOutputStream(JFritz.CALLS_FILE);			PrintWriter pw = new PrintWriter(fos);			pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");			pw.println("<!DOCTYPE calls SYSTEM \"calls.dtd\">");			pw.println("<calls>");			pw.println("<comment>Calls for " + JFritz.PROGRAM_NAME + " v"					+ JFritz.PROGRAM_VERSION + "</comment>");			Enumeration en = callerdata.elements();			while (en.hasMoreElements()) {				Call call = (Call) en.nextElement();				CallType type = call.getCalltype();				Date datum = call.getCalldate();				String caller = call.getNumber();				String port = call.getPort();				String route = call.getRoute();				int duration = call.getDuration();				SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy HH:mm");				pw.println("<entry calltype=\"" + type.toString() + "\">");				pw.println("\t<date>" + df.format(datum) + "</date>");				if (!caller.equals(""))					pw.println("\t<caller>" + caller + "</caller>");				if (!port.equals(""))					pw.println("\t<port>" + port + "</port>");				if (!route.equals(""))					pw.println("\t<route>" + route + "</route>");				if (duration > 0)					pw.println("\t<duration>" + duration + "</duration>");				pw.println("</entry>");			}			pw.println("</calls>");			pw.close();		} catch (FileNotFoundException e) {			System.err.println("Could not write " + JFritz.CALLS_FILE + "!");		}	}