answers.add(a1);
answers.add(a2);
q.setAnswers(answers);
questions.add(q);
}
Questionary questionary = new Questionary();
questionary.setDescription("Description for Test questionary ");
questionary.setName("Test questionary");
questionary.setQuestions(questions);
JAXB.marshal(questionary, new File("c:/temp/questionary.xml"));
// XmlQuestionaryDao dao = new XmlQuestionaryDao();
Questionary q1 = (Questionary) JAXB.unmarshal(new File("c:/temp/questionary.xml"), Questionary.class);
System.out.println(q1);
// dao.parseQuestionary(new
// File("C:/work/workspace.trating.adv2/xquesty/questionaries/qwe1.xml"));
}