예제 #1
0
        private string L7p_SetVariable(XmlNode xNode)
        {
            StringBuilder sB             = new StringBuilder(450);
            string        sVariableToSet = xNode.AA_AttributeValueXPAth("L7p:VariableToSet/@stringValue", _man);
            string        sBase64Encoded = xNode.AA_AttributeValueDecodeBase64("L7p:Base64Expression/@stringValue", _man);
            string        sDatatype      = xNode.AA_AttributeValueXPAth("L7p:DataType/@stringValue", _man);
            string        sContentType   = xNode.AA_AttributeValueXPAth("L7p:ContentType/@stringValue", _man);
            string        sEnabled       = xNode.AA_AttributeValueXPAth("L7p:Enabled/@booleanValue", _man);

            sB.Append(sVariableToSet); sB.Append("="); sB.Append(sBase64Encoded);
            sB.Append("| ");

            if (sEnabled != string.Empty)
            {
                sB.Append("Enabledl"); sB.Append(":"); sB.Append(sEnabled); sB.Append("| ");
            }

            if (sDatatype != string.Empty)
            {
                sB.Append("DataType"); sB.Append(":"); sB.Append(sDatatype); sB.Append("| ");
            }

            if (sContentType != string.Empty)
            {
                sB.Append("ContentType"); sB.Append(":"); sB.Append(sContentType); sB.Append("| ");
            }

            sB.AppendLine();

            return(sB.ToString());
            //Console.WriteLine(n.InnerText);
        }