Blogposter.Utils.SaveXmlfile C# (CSharp) Method

SaveXmlfile() public static method

public static SaveXmlfile ( XmlDocument doc ) : void
doc System.Xml.XmlDocument
return void
        public static void SaveXmlfile(XmlDocument doc)
        {
            try
            {
                doc.Save(settingsfile);
            }
            catch (DirectoryNotFoundException)
            {
                Directory.CreateDirectory(Environment.GetEnvironmentVariable ("HOME") + "/.tomboy/Blogposter");
                doc.Save(settingsfile);
            }
        }