调用方法:
string xmlpath = Environment.CurrentDirectory + "\Xml\XmlFile.xml"; //xml路径;
string note = "";//节点名
string element = ""; //元素名
string attribute = "";//属性名
string value = "";//值
smart_common_plus.XmlHelper.Insert(xmlpath, note, element, attribute, value);//添加
smart_common_plus.XmlHelper.Delete(xmlpath, note, attribute);//删除
smart_common_plus.XmlHelper.Read(xmlpath, note, attribute); //读取
smart_common_plus.XmlHelper.Update(xmlpath, note, attribute, value); //修改
调用方法:
string xmlpath = Environment.CurrentDirectory + "\Xml\XmlFile.xml"; //xml路径;
string note = "";//节点名
string element = ""; //元素名
string attribute = "";//属性名
string value = "";//值
smart_common_plus.XmlHelper.Insert(xmlpath, note, element, attribute, value);//添加
smart_common_plus.XmlHelper.Delete(xmlpath, note, attribute);//删除
smart_common_plus.XmlHelper.Read(xmlpath, note, attribute); //读取
smart_common_plus.XmlHelper.Update(xmlpath, note, attribute, value); //修改
![](https://img-blog.csdnimg.cn/img_convert/dac409e709f81f74dd3d82cf67eb960b.png)
功能代码已经集成,可直接测试,100%可用
smartsofthelp 开发辅助优化工具
(smart_common_plus通用功能类库dll) 代码复用整理收藏(工具-MX复用代码工具宝典)
下载地址: https://pan.baidu.com/s/1t0ygDseBCM2VZYJ5fM-ZNg?pwd=8f34