public ConfigProperty(XmlNode node)
        {
            _xmlNode  = node;
            _name     = XmlUtil.GetNameAttribute(node);
            Encrypted = XmlUtil.GetAttributeBoolDefFalse(node, XMLATT_Encrypted);
            _type     = StringToType(XmlUtil.GetAttribute(node, XMLATT_Type));
            if (_type == null)
            {
                _type = typeof(string);
            }

            if (_type.Equals(typeof(string)))
            {
                if (Encrypted)
                {
                    if (ApplicationConfiguration.CanEncrypt)
                    {
                        _data = ApplicationConfiguration.Decrypt(node.InnerText);
                    }
                    else
                    {
                        _data = node.InnerText;
                    }
                }
                else
                {
                    _data = node.InnerText;
                }
            }
            else
            {
                string s = node.InnerText;
                if (!string.IsNullOrEmpty(s))
                {
                    TypeConverter tc = TypeDescriptor.GetConverter(_type);
                    _data = tc.ConvertFromInvariantString(s);
                }
                else
                {
                    _data = VPL.VPLUtil.GetDefaultValue(_type);
                }
            }
        }