Results 1 to 8 of 8

Thread: Simple way of using XML as Config File? (VB6)

Threaded View

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Question Simple way of using XML as Config File? (VB6)

    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

    Code:
    <?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>
    and my vb code so far i am using XML 2.6
    VB Code:
    1. Dim xml As MSXML2.XMLDocument
    2. Set xml = New MSXML2.XMLDocument
    3. xml.url = App.Path & "\config.xml"
    Last edited by señorbadger; Dec 4th, 2003 at 03:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width