Const URLString As String = "http://maps.googleapis.com/maps/api/geocode/xml?address=Leeds%20Train%20Station&sensor=false"
Dim reader As XmlTextReader = New XmlTextReader(URLString)
Do While (reader.Read())
Select Case reader.NodeType
Case XmlNodeType.Element 'Display beginning of element.
Response.Write("<" & reader.Name)
If reader.HasAttributes Then 'If attributes exist
While reader.MoveToNextAttribute()
'Display attribute name and value.
Response.Write("'{0}'='{1}'", reader.Name, reader.Value)
End While
End If
Response.Write(">")
Case XmlNodeType.Text 'Display the text in each element.
Response.Write(reader.Value)
Case XmlNodeType.EndElement 'Display end of element.
End Select
Loop
Untitled-1.png
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE