Here is some sample XML we want to read:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="Path" value="C:\DATA\Blitz\BlitzTest" />
<add key="SourcePath" value="C:\toolbox\Visual Studio 2005\Projects\Blitz Reporting\Blitz Reporting\" />
</appSettings>
</configuration>
'
Here is some sample VB code that shows you how to read these nodes.
Dim XMLDoc AsNew Xml.XmlDocument
XMLDoc.Load("web.config") 'xml file you want to load
Dim node As Xml.XmlNode = XMLDoc.SelectSingleNode("/configuration/appSettings") 'node path
Dim Path AsString = node.ChildNodes(0).Attributes("value").Value
Dim SourcePath AsString = node.ChildNodes(1).Attributes("value").Value
'
As you can guess the values look like the following:
Path = "C:\DATA\Blitz\BlitzTest"
SourcePath = "C:\toolbox\Visual Studio 2005\Projects\Blitz Reporting\Blitz Reporting\"