Click here to Skip to main content
15,918,211 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
<?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>
Posted

1 solution

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?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900