public static XmlDocument GetAnswerXML(int userId, int examId) { string strAnswerXml = ExamResultDBHelper.GetAnswers(userId, examId); if (string.IsNullOrEmpty(strAnswerXml)) { return(null); } XmlDocument answerXML = new XmlDocument(); answerXML.LoadXml(strAnswerXml); return(answerXML); }