* @param writer A writer that the xml will be written to.
* @throws IOException If an error occurs writing to the writer.
* @see Survey#saveXMLAnswers(String)
*/
public void saveXMLAnswers(Writer writer) throws IOException {
XMLResultWriter resultWriter = new XMLResultWriter(writer);
resultWriter.write(this);
}