2
我正在使用C#來追加這樣的xml資源文件。如何在更新後保存xml資源文件?
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(Properties.Resources.setup_info);
XmlNode node = xmlDoc.SelectSingleNode("data/Ename");
node.Attributes[1].Value = "true";
之後我需要保存資源文件。但是
xmlDoc.Save(path);//needs the file path
如果我給「Properties.Resources.setup_info」拋出錯誤。