Beispiel #1
0
        public XmlNode GetXml(XmlDocument xDoc, XmlNode parent = null)
        {
            XmlNode root = XmlAdder.Element(xDoc, "Command", parent);

            XmlAdder.Attribute(xDoc, "Name", Name, root);
            XmlAdder.Attribute(xDoc, "Template", Template.FullPath, root);

            foreach (XmlCommandField field in Template.Command.Data.FieldList.Values)
            {
                if (field.FieldType == FieldTypes.Dynamic)
                {
                    XmlAdder.Attribute(xDoc, field.Name, field.Data, root);
                }
            }
            if (ResponseCondition != null)
            {
                ResponseCondition.GetXml(xDoc, parent);
            }


            foreach (XmlCommandFields fields in Template.Command.Data.FieldsList.Values)
            {
                XmlNode node = fields.GetXml(xDoc, root);//
            }
            return(root);
        }
Beispiel #2
0
        public XmlNode GetXml(XmlDocument xDoc, XmlNode parent)
        {
            XmlNode root = XmlHandlers.XmlAdder.Element(xDoc, "CondGroup", parent);

            XmlHandlers.XmlAdder.Attribute(xDoc, "Symbol", GroupingSymbol.ToString(), root);

            _condition1.GetXml(xDoc, root);
            _condition2.GetXml(xDoc, root);
            return(root);
        }