code: public static String reportToXml(Report report) {
  		XStream xstream = XStreamFactory.createXStream();
  		ByteArrayOutputStream bos = new ByteArrayOutputStream();
  		xstream.toXML(report, bos);
  		return bos.toString();
  	}
docs: Convert a report object to xml text
  
  @param report
  report object
  @return xml text