Пример #1
0
        // get all transforms and init them
        public void InitAnswerTransforms(XmlNode configurationParameters)
        {
            XmlNode versionNode    = configurationParameters.SelectSingleNode("//version");
            string  sVersionNumber = versionNode.InnerText;

            m_answerFileTransformSets.Clear();
            XmlNodeList nodeList = configurationParameters.SelectNodes("//answerFileTransformSets/answerFileTransformSet");

            foreach (XmlNode setNode in nodeList)
            {
                AnswerFileTransformSet answerFileTransforms = new AnswerFileTransformSet();
                XmlNodeList            transformNodes       = setNode.SelectNodes("transform");
                foreach (XmlNode transformNode in transformNodes)
                {
                    AnswerFileTransform aft = new AnswerFileTransform(AnswerFile, transformNode, ConfigurationPath, sVersionNumber);
                    answerFileTransforms.Add(aft);
                }
                m_answerFileTransformSets.Add(answerFileTransforms);
            }
        }
Пример #2
0
 // get all transforms and init them
 public void InitAnswerTransforms(XmlNode configurationParameters)
 {
     XmlNode versionNode = configurationParameters.SelectSingleNode("//version");
     string sVersionNumber = versionNode.InnerText;
     m_answerFileTransformSets.Clear();
     XmlNodeList nodeList = configurationParameters.SelectNodes("//answerFileTransformSets/answerFileTransformSet");
     foreach (XmlNode setNode in nodeList)
     {
         AnswerFileTransformSet answerFileTransforms = new AnswerFileTransformSet();
         XmlNodeList transformNodes = setNode.SelectNodes("transform");
         foreach (XmlNode transformNode in transformNodes)
         {
             AnswerFileTransform aft = new AnswerFileTransform(AnswerFile, transformNode, ConfigurationPath, sVersionNumber);
             answerFileTransforms.Add(aft);
         }
         m_answerFileTransformSets.Add(answerFileTransforms);
     }
 }