private void saveXMLFile(ArrayList<String[]> data) {
		String xml = createXMLString(data);
		File xmlfile = new File("ports.xml");
		
		// OutputStreamWriter to enable forcing UTF-8 encoding.
		OutputStreamWriter writer = null;
		try {
			writer = new OutputStreamWriter(new FileOutputStream(xmlfile),
					Charset.forName("UTF-8").newEncoder());
			writer.write(xml);
			writer.close();
		} catch (IOException e) {
			logger.log(Level.SEVERE, "Error writing to ports.xml", e);
		}
	}