Represents question type
Esempio n. 1
0
        private List <QuestionType> buildQuestionTypeList(XmlDocument x)
        {
            XmlNodeList qNodes = x.SelectNodes("/response/type");

            if (qNodes.Count > 0)
            {
                List <QuestionType> qList = new List <QuestionType>();
                foreach (XmlNode qNode in qNodes)
                {
                    QuestionType t = new QuestionType();
                    XmlUtils.UseNode(qNode);
                    t.Id   = XmlUtils.Int("tid");
                    t.Name = XmlUtils.String("name");
                    qList.Add(t);
                }
                return(qList);
            }
            return(null);
        }
Esempio n. 2
0
 private List<QuestionType> buildQuestionTypeList(XmlDocument x)
 {
     XmlNodeList qNodes = x.SelectNodes("/response/type");
     if (qNodes.Count > 0)
     {
         List<QuestionType> qList = new List<QuestionType>();
         foreach (XmlNode qNode in qNodes)
         {
             QuestionType t = new QuestionType();
             XmlUtils.UseNode(qNode);
             t.Id = XmlUtils.Int("tid");
             t.Name = XmlUtils.String("name");
             qList.Add(t);
         }
         return qList;
     }
     return null;
 }