public static void writeToFile(File file, RunData runData)
	{
	    FileOutputStream fos = null;
	    try {
	        fos = new FileOutputStream(file);
	        XMLOutputFactory xmlOutFact = XMLOutputFactory.newInstance();
	        XMLStreamWriter writer = xmlOutFact.createXMLStreamWriter(fos);
	        writer.writeStartDocument();writer.writeCharacters("\n");
	        
	        writer.writeStartElement(CustomNode.Circles.getTagName());writer.writeCharacters("\n");
	        for(Circle c : runData.getCircles())
	        {
	        	writer.writeStartElement(CustomNode.Circle.getTagName());writer.writeCharacters("\n");
        			writer.writeStartElement(CustomNode.Id.getTagName());
        				writer.writeCharacters(String.valueOf(c.getId()));
        			writer.writeEndElement();writer.writeCharacters("\n");
        			writer.writeStartElement(CustomNode.Height.getTagName());
    					writer.writeCharacters(String.valueOf(Utils.convert(c.getY() / (double) MainWindow._scaleFactor, Utils.UNIT.CM, Utils.UNIT.MM)));
    				writer.writeEndElement();writer.writeCharacters("\n");
        		writer.writeEndElement();writer.writeCharacters("\n");
	        }
	        writer.writeEndElement();writer.writeCharacters("\n");
	        writer.flush();
	    }
	    catch(IOException exc) {
	    }
	    catch(XMLStreamException exc) {
	    }
	    finally {
	    }
	}