473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Visual Basic 6 Accessing XML database on a web server

Hi, I was wondering if someone could help me to use visual basic 6 to
connect to a server with a XML file on it and retrieve certain parts. I'm a
bit of a newbie in XML programming, so any help would be greatly
appreciated.
Thanks,
Daniel Sullivan

Jul 17 '05 #1
1 4065
Hi Daniel,

This should get you the xml from your server down into a DOM document.
They are used to process xml in a node tree. Look up XPath as a
means of jumping to nodes directly. http://www.w3schools.com/ has
good resources on this and other xml style things. Look up DOM on
MSDN and you should get the hang of it quite quickly. It is a simple
technology.

You'll need to add Microsoft XML, 3.0 into your references for the vb
project. This requires a reasonably up to date version of IE or a
seperate install of MSXML.

Regards,

Finlay Macrae

Dim obj As New DOMDocument
Dim bstrString As String
Dim objXMLHTTPRequest As New MSXML2.XMLHTTP

objXMLHTTPRequest.open "GET", "http://yourserver/your .xml or .asp",
False
objXMLHTTPRequest.setRequestHeader "Content-type", "text/xml"
objXMLHTTPRequest.send
If objXMLHTTPRequest.Status = 200 Then
bstrString = objXMLHTTPRequest.responseText
Else
MsgBox "Problem with download :("
End If

obj.loadXML bstrString
MsgBox obj.xml
"Daniel Sullivan" <da**************@bigpond.com> wrote in message news:<kz*****************@news-server.bigpond.net.au>...
Hi, I was wondering if someone could help me to use visual basic 6 to
connect to a server with a XML file on it and retrieve certain parts. I'm a
bit of a newbie in XML programming, so any help would be greatly
appreciated.
Thanks,
Daniel Sullivan

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim S. | last post by:
I'm having a horrible time simply inserting the date in a MySQL database through a Visual Basic program. I have a table, called "ORDERS"; "ID" is the primary key. I'm trying the insert the date,...
2
by: Gijs Beukenoot | last post by:
Hi all, I have an existing application that checks a few things before it launches another application. One thing that the application needs to check is the subscription properties of both the...
3
by: jaYPee | last post by:
i am searching a lot of resources in the net that discusses about database programming. i'm still searching on it and would like to received any links that discusses about database programming in...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
9
by: cj | last post by:
I'm trying to forge ahead with Visual Basic .Net but recently I've suffered several major set backs in demonstrating VB is the future and we should move from Visual FoxPro. I really need to find...
2
by: CAM | last post by:
Hello, I am wondering if someone can give me some pointers. Currently I am using Access 2002 I developed an inventory tracking database, which this database is used in California and in...
0
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I am currently working on the application that need to simulate basic authentication programmatically using user's credentials that are known. Basically, the need is for a single sign on with a...
1
by: FlyingBuckner | last post by:
All right be kind, this is my first question on a forum. I need help on selecting the right software to purchase. I have a database set up using Access, 6 users. It is split into Tables and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.