AvalonGUIConfig.AvalonHelper.SetNodeText C# (CSharp) Метод

SetNodeText() публичный статический Метод

Set XML Property
public static SetNodeText ( string file, string path, string value ) : void
file string
path string
value string
Результат void
        public static void SetNodeText(string file, string path, string value)
        {
            XmlDocument doc = LoadXMLDocument(file);
            if (doc == null) return;

            XmlNode node = doc.SelectSingleNode(path);
            if (node == null)
                return;

            try
            {
                node.InnerText = value;

                doc.Save(file);
            }
            catch (Exception ex)
            {
                //smcLog.WriteLog("Exception setting skin text property: " + ex.Message, LogLevel.Error);
            }
        }