private void createAnswerModule(String type, String goTo, int points, String date, String wrong, int timestop, Element answerElement)
    {
        Attr attr = doc.createAttribute("type");
        attr.setValue(type);
        answerElement.setAttributeNode(attr);
        
        if((goTo!=null)&&(!goTo.equals("")))
        {
        answerElement.setAttributeNode(attr);
        attr = doc.createAttribute("goto");
        int gotoValue = Integer.parseInt(goTo);
        attr.setValue(Integer.toString(gotoValue));
        
        answerElement.setAttributeNode(attr);
        }
        
        attr = doc.createAttribute("points");
        attr.setValue(Integer.toString(points));
        answerElement.setAttributeNode(attr);
        attr = doc.createAttribute("datetime");
        attr.setValue(date);
        answerElement.setAttributeNode(attr);
        if(timestop!=0)
        {
            attr = doc.createAttribute("timestop");
            attr.setValue(Integer.toString(timestop));
            answerElement.setAttributeNode(attr);
        }
        
        if((wrong!=null)&&(!wrong.equals("")) )
        {
            attr = doc.createAttribute("wrong");
            int wrongValue = Integer.parseInt(wrong);
            attr.setValue(Integer.toString(wrongValue));
            answerElement.setAttributeNode(attr);
        }   
    }