* @param node the source node
* @param format the desired output format
*/
public static void serialize( File file, Node node, Format format) throws XMLException {
try {
OutputStream os = new FastBufferedOutputStream(new FileOutputStream(file));
try {
serialize(os, node, format);
} finally {
os.close();
}
} catch(IOException e) {
//TODO - after resource bundle clarification throw new XMLException(e, "Error while saving XML to file '{0}'", file.getPath()); //$NLS-DOMUtil.JDOMUtil.XmlSavingToFile.Exception-1$
throw new XMLException(e,"JDOMUtil.XmlSavingToFile.Exception"+file.getPath()); // $NON-NLS-1$
}