Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Reading XML in VB6

Hi you all,

I am a newbie in XML using VB6 and i am trying to do something with it...

I have to read an XML which follows like:

<name>MyName</name>
<surname>MySurname</surname>
...
...
...

--------------

I have this code at the moment:

Public Sub GetMyTeamData()
Dim XMLData As String
Dim URL As String
Dim ServerName As String
Dim Response As String
Dim ServerID As Long

Dim XMLDoc As New DOMDocument30

Call BestServer(URL, URL, Response, ServerID)
XMLData = GetHatXMLData(URL)

XMLDoc.loadXML XMLData
Set rnode = XMLDoc.documentElement

End Sub

-----------

where XMLData is the data downloaded from the server (app working OK till here)

So now, what i wanna do is read the data and save it in different strings such as

dim sName as string
dim sSurname as string
...

Any help will be appreciated :D
[1036 byte] By [sowjon] at [2007-11-11 7:34:04]