Exemple #1
0
        }//validate()

        public XmlNode ToXml(XmlDocument XmlDoc)
        {
            XmlNode PropFilterNode = XmlDoc.CreateNode(XmlNodeType.Element, CswEnumNbtViewXmlNodeName.Filter.ToString(), "");

            XmlAttribute FilterValueAttribute = XmlDoc.CreateAttribute("value");

            FilterValueAttribute.Value = Value;
            PropFilterNode.Attributes.Append(FilterValueAttribute);

            XmlAttribute FilterModeAttribute = XmlDoc.CreateAttribute("filtermode");

            FilterModeAttribute.Value = FilterMode.ToString();
            PropFilterNode.Attributes.Append(FilterModeAttribute);

            XmlAttribute CaseSensitiveAttribute = XmlDoc.CreateAttribute("casesensitive");

            CaseSensitiveAttribute.Value = CaseSensitive.ToString();
            PropFilterNode.Attributes.Append(CaseSensitiveAttribute);

            XmlAttribute ShowAtRuntimeAttribute = XmlDoc.CreateAttribute("showatruntime");

            ShowAtRuntimeAttribute.Value = ShowAtRuntime.ToString();
            PropFilterNode.Attributes.Append(ShowAtRuntimeAttribute);

            XmlAttribute ArbitraryIdAttribute = XmlDoc.CreateAttribute("arbitraryid");

            ArbitraryIdAttribute.Value = ArbitraryId.ToString();
            PropFilterNode.Attributes.Append(ArbitraryIdAttribute);

            XmlAttribute SubfieldNameAttribute = XmlDoc.CreateAttribute("subfieldname");

            SubfieldNameAttribute.Value = SubfieldName.ToString();
            PropFilterNode.Attributes.Append(SubfieldNameAttribute);

            XmlAttribute ResultModeAttribute = XmlDoc.CreateAttribute("resultmode");

            ResultModeAttribute.Value = ResultMode.ToString();
            PropFilterNode.Attributes.Append(ResultModeAttribute);

            XmlAttribute ConjunctionAttribute = XmlDoc.CreateAttribute("conjunction");

            ConjunctionAttribute.Value = Conjunction.ToString();
            PropFilterNode.Attributes.Append(ConjunctionAttribute);

            return(PropFilterNode);
        }