AutoWikiBrowser.Plugins.Kingbotk.PluginManager.LoadSettingsNewWay C# (CSharp) Method

LoadSettingsNewWay() private static method

private static LoadSettingsNewWay ( string xmlString ) : void
xmlString string
return void
        private static void LoadSettingsNewWay(string xmlString)
        {
            xmlString = xmlString.Replace("WikiProject Military history", "Military");
            xmlString = xmlString.Replace("WikiProject Songs", "Songs");
            xmlString = xmlString.Replace("WikiProject Albums", "Albums");
            System.IO.StringReader st = new System.IO.StringReader(xmlString);
            XmlTextReader reader = new XmlTextReader(st);

            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element)
                {
                    ReadXML(reader);
                    break;
                }
            }
        }