C#如何将节点数据保存到指定的XML文件中
1、我下面就来给大家具体解释一下

2、clas衡痕贤伎s ClsXMLoperate { //定义变量 private static XmlDocument objXm造婷用痃lDoc = null; private static string XmlFilePath; public ClsXMLoperate(string _XmlFilePath)

3、{ objXmlDoc = new XmlDocument(); XmlFilePath = _XmlFilePath; if (System.IO.File.Exists(_XmlFilePath)) { objXmlDoc.Load(_XmlFilePath); } else

4、 { throw new Exception("文件不存在"); } }

5、大概操作是这样,希望我的经验对你有所帮助
