Hi i was just wondering if there is a simple way to use xml as a application configuration file in VB6.
Can someone show me how to put a xml file into varibles i mean like
timeout would be equal to the value of <Timeout> in the xml i am using below is my xml
and my vb code so far i am using XML 2.6Code:<?xml version="1.0" encoding="iso-8859-1"?> <CONFIG> <Network> <IP>80</IP> <HOST>127.0.0.1</HOST> <Timeout>12</Timeout> </Network> <General> <Auto>1</Auto> <ONTOP>True</ONTOP> </General> </CONFIG>
VB Code:
Dim xml As MSXML2.XMLDocument Set xml = New MSXML2.XMLDocument xml.url = App.Path & "\config.xml"





Reply With Quote