谁能解释我如何在asp.net中读取xmlfile

谁能解释我如何在asp.net中读取xmlfile

问题描述:

任何人都可以解释我如何在asp.net中读取xmlfile ...........
我尝试学习Google,但没有得到
任何人都可以逐步解释

这是下面给出的我的文件....

该文件的路径是...
C:\ Documents and Settings \ azhar \ Desktop \ appsettings.xml


any one explain me how to read xmlfile in asp.net...........
I try to lear in google but am not getting
any one explain step by step

this is my file below given....

path of this file is...
C:\Documents and Settings\azhar\Desktop\appsettings.xml


<?xml version="1.0" standalone="yes" ?>
- <DocumentElement>
- <Location>
  <id>NMBM Test</id>
  <DataBaseName>ICMAStest</DataBaseName>
  <WebServerName>ICMAS-TEST</WebServerName>
  <DataBaseServerName>ICMAS-TEST\SQLEXPRESS</DataBaseServerName>
  <ClientSettingsProvider.ServiceUri />
  <RptUrl>http://icmas-test/ReportServer_SQLEXPRESS</RptUrl>
  <ReportPath>/ICMASReports/</ReportPath>
  <ReportServerUserName>NALIN</ReportServerUserName>
  <ReportServerPassword>temp123</ReportServerPassword>
  <SMTPServerId>10.100.0.80</SMTPServerId>
  </Location>
- <Location>
  <id>NMBM Production</id>
  <DataBaseName>ICMAStest</DataBaseName>
  <WebServerName>ICMAS-TEST</WebServerName>
  <DataBaseServerName>ICMAS-TEST\SQLEXPRESS</DataBaseServerName>
  <ClientSettingsProvider.ServiceUri />
  <RptUrl>http://icmas-test/ReportServer_SQLEXPRESS</RptUrl>
  <ReportPath>/ICMASReports/</ReportPath>
  <ReportServerUserName>NALIN</ReportServerUserName>
  <ReportServerPassword>temp123</ReportServerPassword>
  <SMTPServerId>10.100.0.80</SMTPServerId>
  </Location>
- <Location>
  <id>ICMASDev Satish</id>
  <DataBaseName>ICMAStest</DataBaseName>
  <WebServerName>192.168.0.178</WebServerName>
  <DataBaseServerName>epmpune\ciodevdb</DataBaseServerName>
  <ClientSettingsProvider.ServiceUri />
  <RptUrl>http://icmas-test/ReportServer_SQLEXPRESS</RptUrl>
  <ReportPath>/ICMASReports/</ReportPath>
  <ReportServerUserName>NALIN</ReportServerUserName>
  <ReportServerPassword>temp123</ReportServerPassword>
  <SMTPServerId>10.100.0.80</SMTPServerId>
  </Location>
- <Location>
  <id>ICMAS Test icmastest-userpc2</id>
  <DataBaseName>ICMASQA</DataBaseName>
  <WebServerName>userpc2</WebServerName>
  <DataBaseServerName>epmpune\ciodevdb</DataBaseServerName>
  <ClientSettingsProvider.ServiceUri />
  <RptUrl>http://userpc2/ReportServer_SQLEXPRESS</RptUrl>
  <ReportPath>/userpc2/</ReportPath>
  <ReportServerUserName>NALIN</ReportServerUserName>
  <ReportServerPassword>temp123</ReportServerPassword>
  <SMTPServerId>mail.24by7cio.com</SMTPServerId>
  </Location>
- <Location>
  <id>ICMASQA</id>
  <DataBaseName>ICMASQA</DataBaseName>
  <WebServerName>192.168.0.178</WebServerName>
  <DataBaseServerName>epmpune\ciodevdb</DataBaseServerName>
  <ClientSettingsProvider.ServiceUri />
  <RptUrl>http://userpc2/ReportServer_SQLEXPRESS</RptUrl>
  <ReportPath>/userpc2/</ReportPath>
  <ReportServerUserName>NALIN</ReportServerUserName>
  <ReportServerPassword>temp123</ReportServerPassword>
  <SMTPServerId>mail.24by7cio.com</SMTPServerId>
  </Location>
  </DocumentElement>

嗯.
Microsoft很好地一步一步解释了它: http://support.microsoft.com/kb/307548 [^ ]

哪一部分给您带来了麻烦?
Um.
Microsoft does a pretty good job of explaining it step by step: http://support.microsoft.com/kb/307548[^]

What part of that is giving you problems?