Element response_lid = presentationXML.addElement("response_lid");
response_lid.addAttribute("ident", getIdent());
response_lid.addAttribute("rcardinality", (getType() == TYPE_SC) ? "Single" : "Multiple");
response_lid.addAttribute("rtiming", "No");
Element render_choice = response_lid.addElement("render_choice");
render_choice.addAttribute("shuffle", isShuffle() ? "Yes" : "No");
render_choice.addAttribute("minnumber", getType() == TYPE_SC ? "1" : "0");
render_choice.addAttribute("maxnumber", getType() == TYPE_SC ? "1" : String.valueOf(getResponses().size()));
for (Iterator i = getResponses().iterator(); i.hasNext();) {
ChoiceResponse tmpChoice = (ChoiceResponse) i.next();