예제 #1
0
        private static Decision HandleDecision(XmlTextReader xml)
        {
            string    type  = xml.GetAttribute(TYPE_ATTRIB);
            Hashtable table = new Hashtable();

            while (xml.Read())
            {
                if (xml.NodeType == XmlNodeType.Element &&
                    xml.Name == CONDITION_TAG)
                {
                    HandleCondition(xml, table);
                }
                else if (xml.NodeType == XmlNodeType.EndElement &&
                         xml.Name == DECISION_TAG)
                {
                    break;
                }
            }

            return(Decision.GetDecisionFactory(type)(table));
        }