public void exportXml(String filepath) throws IOException {
  OutputStream outputStream=null;
  try {
    outputStream=new FileOutputStream(filepath);
    exportXml(outputStream);
  }
  finally {
    if (outputStream != null) {
      outputStream.close();
    }
  }
}

public void exportXml ( String filepath ) throws IOException { OutputStream outputStream = null ; try { outputStream = new FileOutputStream ( filepath ) ; exportXml ( outputStream ) ; } finally { if ( outputStream != null ) { outputStream . close ( ) ; } } }
dumps fetch data to file in xml format .
