Corrected a bug in CheckAnswers that ouput the XML nodes in the wrong order. Reason: xmlr.getText() consumed the end_element,
and thus the end_element event had never been discovered. Added xtw.writeEndElement() statement to processing code.