public void saveBlockList()
	{
		RegenPlugin.get().getLogger().info(RegenPlugin.get().getName() + ".SaveBlockList()");
		
		//TODO: Save block list into SQL DB
		
		//We need a Document
        DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder;
		try {
			docBuilder = dbfac.newDocumentBuilder();
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
			return;
		}
        Document doc = docBuilder.newDocument();

        ////////////////////////
        //Creating the XML tree

        //create the root element and add it to the document
        Element root = doc.createElement("regenBlockList");
        doc.appendChild(root);

        ListIterator<Block> iter = regenBlockList.listIterator();
		while (iter.hasNext()) {
			Block block = (Block) iter.next();

	        //create child element, add an attribute, and add to root
	        Element block_element = doc.createElement("block");
	        block_element.setAttribute("x", String.valueOf(block.getX()));
	        block_element.setAttribute("y", String.valueOf(block.getY()));
	        block_element.setAttribute("z", String.valueOf(block.getZ()));
	        root.appendChild(block_element);			
		}

        /////////////////
        //Output the XML
        //set up a transformer
        TransformerFactory transfac = TransformerFactory.newInstance();
        Transformer trans;
		try {
			trans = transfac.newTransformer();
		} catch (TransformerConfigurationException e) {
			e.printStackTrace();
			return;
		}
        trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        trans.setOutputProperty(OutputKeys.INDENT, "yes");

        //create string from xml tree
        StringWriter sw = new StringWriter();
        StreamResult result = new StreamResult(sw);
        DOMSource source = new DOMSource(doc);
        try {
			trans.transform(source, result);
		} catch (TransformerException e) {
			e.printStackTrace();
			return;
		}
        String xmlString = sw.toString();

        //print xml
        System.out.println("Here's the xml:\n\n" + xmlString);
        
        //write to .xml file		
		File folder = RegenPlugin.get().getDataFolder();
		if(!folder.isDirectory()){
			folder.mkdir();	
		}
		
		File file = new File(folder.getAbsolutePath() + "\\" + BLOCK_LIST_FILE);
		if(!file.exists()){
			try {
				file.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
				return;
			}
		}
		
		FileOutputStream fos;
		try {
			fos = new FileOutputStream(file);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			return;
		}
		
		try {
			fos.write(xmlString.getBytes());
			fos.close();
		} catch (IOException e) {
			e.printStackTrace();
			return;
		}	
		
	}