return save(f);
dom.getDocumentElement().normalize();  try {  TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); String systemValue = (new File(dom.getDoctype().getSystemId())) .getName(); transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, systemValue);  DOMSource source = new DOMSource(dom); StreamResult result = new StreamResult(new FileOutputStream(f)); transformer.transform(source, result); return true; } catch (TransformerConfigurationException tce) {  System.out.println("\n** Transformer Factory error"); System.out.println("   " + tce.getMessage());   Throwable x = tce; if (tce.getException() != null) x = tce.getException(); x.printStackTrace();  } catch (TransformerException te) {  System.out.println("\n** Transformation error"); System.out.println("   " + te.getMessage());   Throwable x = te; if (te.getException() != null) x = te.getException(); x.printStackTrace(); } catch (FileNotFoundException e) { e.printStackTrace(); } return false;
    public boolean save()    {        return save(f);    }