public static Question getQuestionByXMLElem(XMLElement root, Quiz quiz, int pos) {
		String type = root.attributeMap.get("type");		
		if (type.equals("question-response")) {
			return ResponseQuestion.getResponseQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("fill-in-blank")) {
			return FillInBlankQuestion.getFillInBlankQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("multiple-choice")) {
			return MultipleChoiceQuestion.getMultipleChoiceQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("picture-response")) {
			return PictureQuestion.getPictureQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("matching-question")) {
			return MatchingQuestion.getMatchingQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("multi-answer-question")) {
			return MultiAnswerQuestion.getMultiAnswerQuestionByXMLElem(root, quiz, pos);
		} else if (type.equals("multi-choice-multi-answer-question")) {
			return MultiChoiceMultiAnswerQuestion.getMultiChoiceMultiAnswerQuestionByXMLElem(root, quiz, pos);
		} else {
			System.out.println("Question Type " + type + " Not Recognized.");
			return null;
		}
	}