导入.xml文件并使用asp.net获取输出.xml文件。 [英] Import .xml file and get output .xml file using asp.net.

查看:76
本文介绍了导入.xml文件并使用asp.net获取输出.xml文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站基本上是一个监视器应用程序我必须保留一个配置文件,其中包含一些Web服务器名称,IP地址,每个Web服务器上托管的网站的名称,URL和端口号等。



任何人都可以解释一下将此配置文件视为我的Web应用程序的自定义配置文件并使用ConfigurationSection或IConfigurationSectionHandler读取它的好处是什么?而不是将其作为普通的xml文件处理并使用XMLDocument或XMLTextReader或XLINQ等读取它?这将使我免于在web.config文件中创建一个条目以及这个自定义配置文件。



我花了很多时间在互联网上寻找这个答案却找不到任何满意的答案。



请帮助我。

In my web site which is basically a monitor application I have to keep a configuration file which contains some web servers name, IP address,names of web sites hosted on each web server, url and port numbers etc.

Can anyone please explain me what are the benefits of treating this configuration file as custom configuration file of my web application and reading it using ConfigurationSection or IConfigurationSectionHandler" rather than treating it as a normal xml file and reading it using XMLDocument or XMLTextReader or XLINQ etc? This will save me from creating an entry in in the web.config file as well this custom configuration file.

I have spent good amount of time on the internet looking for this answer but could not find any satisfactory answer.

Please help me.

推荐答案

这篇关于导入.xml文件并使用asp.net获取输出.xml文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆