Пример #1
0
        public override XmlElement XmlDigest(XmlDocument doc)
        {
            XmlElement xmlcode = doc.CreateElement("sel");

            if (!elsestate)
            {
                xmlcode.SetAttribute("con", condition);
                xmlcode.AppendChild(truePart.XmlDigest(doc));
                xmlcode.SetAttribute("else", "false");
            }
            else
            {
                xmlcode.SetAttribute("con", condition);
                xmlcode.AppendChild(truePart.XmlDigest(doc));
                xmlcode.AppendChild(falsePart.XmlDigest(doc));
                xmlcode.SetAttribute("else", "true");
            }
            return(xmlcode);
        }
Пример #2
0
        public override XmlElement XmlDigest(XmlDocument doc)
        {
            XmlElement   loopElement  = doc.CreateElement("loop");
            XmlAttribute conditionAtt = doc.CreateAttribute("con");

            conditionAtt.Value = condition;
            loopElement.Attributes.Append(conditionAtt);
            loopElement.AppendChild(codeinloop.XmlDigest(doc));
            return(loopElement);
        }