/** * Writes the data to the file. * * @param file The file to handle. * @param ome The element to write to the file. * @param binaryData Pass <code>true</code> to add the binary data, * <code>false</code> otherwise. * @throws Exception Thrown if an error occurred while writing the XML file. */ public void writeFile(File file, OME ome, boolean binaryData) throws Exception { String values = createXMLDocument(ome, binaryData); copyValues(file, values.getBytes()); //validate(file); }