Below is an example of populating variables from an XML file.
I made up a very simple XML file and saved it as c:\TestXMLFile.xml (see the content below). I then made a VB web page and use only 1 button and the debugger.
In the button click event, I demonstrate how to populate string variables by either selecting a single value from the XML document or by iterating a set of values. You can see http://www.developer.com/x
<?xml version="1.0" encoding="utf-8"?>
<root>
<logons>
<logon>
<system>MySystem</system>
<client>MyClient</client>
<user>MyUser</user>
<password>MyPassword</passwor
</logon>
<logon>
<system>OtherSystem</system>
<client>OtherClient</client>
<user>OtherUser</user>
<password>OtherPassword</pass
</logon>
</logons>
</root>
Main Topics
Browse All Topics





by: MitzsPosted on 2009-01-20 at 09:11:02ID: 23422014
here is an example of how to read an xml file.
http://www.experts-ex change.com /Programmi ng/Languag es/.NET/Vi sual_Studi o_.NET_200 5/Q_225754 98.html
hope this helps.