I'm totally new to Visual Basic 6 so please forgive me if this is a dumb question that has an easy answer. I've searched but I can't find an easy solution that someone like me would understand.
Here is what I would like to do. I want to access a website using my program and read in one of 2 XML file. After reading them, I want it add the values to a variable.
I don't have any idea how to connect to a website using VB or how to cycle thought an XML and parse the variables I want. So ideally, the following variables would be populated with the values from the XML:
+-----------+---------------+
| VB VAR | VALUES |
+===========+===============+
| Version | 3.1.5 |
+-----------+---------------+
| ID | 786 |
+-----------+---------------+
| Name | Tony Lock |
+-----------+---------------+
| Subject | Hello World |
+-----------+---------------+
| Forum | General |
+-----------+---------------+
Question
TonyLock
I'm totally new to Visual Basic 6 so please forgive me if this is a dumb question that has an easy answer. I've searched but I can't find an easy solution that someone like me would understand.
Here is what I would like to do. I want to access a website using my program and read in one of 2 XML file. After reading them, I want it add the values to a variable.
The first XML may be on a URL like: http://www.example.com/version.xml
The XML will look exactly like:
The second XML may be on a URL like: http://www.example.com/news.xml
The XML will look exactly like:
I don't have any idea how to connect to a website using VB or how to cycle thought an XML and parse the variables I want. So ideally, the following variables would be populated with the values from the XML:
Thank you so much for your help.
Link to comment
Share on other sites
13 answers to this question
Recommended Posts