当前路径:Functions/Function.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using Model; namespace Function { public class Fun { //string path = (@"..\..\Configuration.xml"); #region /// <summary> /// 读取webservice基本信息操作 /// </summary> public List<webservice_model> Get_webservice_configure(string path) { List<webservice_model> model = new List<webservice_model>(); webservice_model ws=new webservice_model(); try { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(path); XmlNode nodeList = xmlDoc.SelectSingleNode("Webservice").ChildNodes[0];//获取bookstore节点的所有子节点 XmlElement xe = (XmlElement)nodeList; //将子节点类型转换为XmlElement类型 ws.name=(xe).Attributes["Webserver_Name"].Value; ws.ip=(xe).Attributes["Ip_Address"].Value; ws.frequent=int.Parse((xe).Attributes["Frequent"].Value); ws.notify=(xe).Attributes["Tip_method"].Value; model.Add(ws); return model; } catch (Exception exp) { throw exp; } } /// <summary> /// 更新webservice信息 /// </summary> public string Update_webserviceconfigure(webservice_model...
完整源码文件,请先购买后再查看
相关源码
- .NET医院排队叫号系统2022-05-20
- WINFORM学生成绩管理系统2022-05-05
- 维尼宠物店管理系统源码2022-05-04
- WMS仓储管理系统V3.02022-04-23
- 医药进销存系统2022-04-14
- 安全培训管理2022-04-05
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号