/// <summary>
        /// 创建黑名单设置节点
        /// </summary>
        /// <param name="blacklist"></param>
        /// <returns></returns>
        private static string Convert(RegulationRulesSetting set)
        {
            doc = new XmlDocument();
            XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "utf-8", null);

            doc.AppendChild(dec);
            XmlElement root             = doc.CreateElement("regulationRulesSetting");
            XmlElement blacklistNode    = ConvertBlacklistSet(set.BlacklistSet);
            XmlElement realNameSeatList = ConvertRealNameSeat(set.RealNameSeatList);

            root.AppendChild(blacklistNode);
            root.AppendChild(realNameSeatList);
            doc.AppendChild(root);
            return(doc.OuterXml.ToString());
        }
        /// <summary>
        /// 解析黑名单设置节点
        /// </summary>
        /// <param name="xmlBlacklist">黑名单的Xml</param>
        /// <returns></returns>
        public static RegulationRulesSetting Convert(string xmlBlacklist)
        {
            doc = new XmlDocument();
            RegulationRulesSetting set = new RegulationRulesSetting();

            if (!string.IsNullOrEmpty(xmlBlacklist))
            {
                doc.LoadXml(xmlBlacklist);
                XmlNode node = doc.SelectSingleNode("//regulationRulesSetting/blacklist");
                if (node != null)
                {
                    set.BlacklistSet = ConvertBlacklistSet(node);
                }
                node = doc.SelectSingleNode("//regulationRulesSetting/realNameSeatList");
                if (node != null)
                {
                    set.RealNameSeatList = ConvertRealNameSeat(node);
                }
            }
            return(set);
        }