code: public static String toXml(com.greenpepper.document.Document document) throws IOException
  	{
  		StringWriter sw = new StringWriter();
  
  		XmlReport xmlReport = XmlReport.newInstance("");
  		xmlReport.generate( document );
  		xmlReport.printTo( sw );
  
  		return sw.toString();
  	}
docs: <p>toXml.</p>
  
  @param document a {@link com.greenpepper.document.Document} object.
  @return a {@link java.lang.String} object.
  @throws java.io.IOException if any.