c#项目中可以用xml文件存储配置参数
来源:互联网 发布:广东广电网络wifi设置 编辑:程序博客网 时间:2024/06/05 03:00
try
{
if (File.Exists(xmlPath))
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlPath);
XmlElement xmle = xmlDoc.DocumentElement;//获取根节点;
string str = xmle.GetAttribute(name);//查找某参数;
return str;
}
}
catch
{
}
{
if (File.Exists(xmlPath))
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlPath);
XmlElement xmle = xmlDoc.DocumentElement;//获取根节点;
string str = xmle.GetAttribute(name);//查找某参数;
return str;
}
}
catch
{
}
- c#项目中可以用xml文件存储配置参数
- C#中可以用XmlDocument类操作Xml文件
- ehcache.xml文件中cache配置参数
- Struts 项目中web.xml文件配置
- Struts 项目中web.xml文件配置
- Struts 项目中web.xml文件配置
- RecyclerView可以在xml文件中配置的特别属性
- eclipse中配置xml文件时没有提示,可以
- c#中自动配置存储过程所需参数
- 详解ehcache.xml文件中cache配置参数
- 详解ehcache.xml文件中cache配置参数
- 详解ehcache.xml文件中cache配置参数
- weblogic项目可以没有web.xml文件?
- 在存储过程中,用xml作为参数传递
- Java:Struts 项目中web.xml文件配置
- ANT 发布项目中 build.xml 文件的详细配置
- Eclipse中Android项目XML文件的格式化配置
- Eclipse中Android项目XML文件的格式化配置
- QString和QDateTime之间的相互转换
- 【观点】关于数据分析部门组织架构的探讨
- 自定义圆形ProgressBar
- FFMPEG
- Linux---kfifo
- c#项目中可以用xml文件存储配置参数
- javax.servlet.http.HttpServletRequest
- vMA5.1上安装PCNS3.0.1时报错 ./install.sh: line 1487: /etc/rc.d/init.d/PowerChute: No such file or director
- Visual Studio 2010调试技巧
- ubuntu下安装smba
- 关于ActionContext.getContext()的用法心得
- samba配置 以及没有权限访问的 解决方法
- getPath()返回路径包含的“%20”(空格)的处理
- 解决JSP中文乱码问题