code: public static String toXML(MultipleAlignmentEnsemble ensemble)
  			throws IOException {
  
  		StringWriter result = new StringWriter();
  		PrintWriter writer = new PrintWriter(result);
  		PrettyXMLWriter xml = new PrettyXMLWriter(writer);
  
  		MultipleAlignmentXMLConverter.printXMLensemble(xml, ensemble);
  
  		writer.close();
  
  		return result.toString();
  	}
docs: Converts all the information of a multiple alignment ensemble into an XML
  String format. Cached variables, like transformation matrices and scores,
  are also converted.
  
  @param ensemble
  the MultipleAlignmentEnsemble to convert.
  @return String XML representation of the ensemble
  @throws IOException
  @see MultipleAlignmentXMLConverter Helper methods for XML conversion