public boolean createXML(String fileName){
  try {
    File file=new File(fileName);
    file.createNewFile();
    StreamResult result=new StreamResult(file);
    createXML(result);
  }
 catch (  Exception e) {
    log.log(Level.SEVERE,"(file)",e);
    return false;
  }
  return true;
}

public boolean createXML ( String fileName ) { try { File file = new File ( fileName ) ; file . createNewFile ( ) ; StreamResult result = new StreamResult ( file ) ; createXML ( result ) ; } catch ( Exception e ) { log . log ( Level . SEVERE , "(file)" , e ) ; return false ; } return true ; }
create xml representation to file
