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 |
+-----------+---------------+
Indeed. I stop visiting those sites. If they can’t be bothered to make a site work across mainstream browsers, they don’t deserve my visit.
May they all wither and die.
I absolutely hate how they are using intentionally misleading wording to scare people into "upgrading" their operating system. They could use the money they are spending on marketing to keep Windows 10 running for, like, 10 more years.
Recent Achievements
Vladimir Migunov earned a badge One Year In
daelos earned a badge One Month Later
daelos earned a badge Week One Done
Karlston went up a rank Mentor
EdwardFranciscoVilla earned a badge One Month Later
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
https://www.neowin.net/forum/topic/773202-vb6-reading-xml-from-website/Share on other sites
13 answers to this question
Recommended Posts