public String exportXml() throws IOException {
  ByteArrayOutputStream outputStream=new ByteArrayOutputStream();
  exportXml(outputStream);
  return outputStream.toString();
}

public String exportXml ( ) throws IOException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; exportXml ( outputStream ) ; return outputStream . toString ( ) ; }
dumps fetch data in xml format .
