How to read XML data stream via a URL address into a string ?

  • Thread starter Thread starter fniles
  • Start date Start date
F

fniles

I know how to read XML from a file.
But I will need to load the XML content from a URL, so when I go to the URL,
the result is XML file, and I will need to capture the content to a string.
How can I do that ?
Thank you.
 
I know how to read XML from a file.
But I will need to load the XML content from a URL, so when I go to the URL,
the result is XML file, and I will need to capture the content to a string.
How can I do that ?
Thank you.

Imports System.Net.WebClient

....

Dim wc As New WebClient
Dim xmlString As String = wc.DownloadString ("http://yoururl")
 
I am using VB and ASP, not .NET.
Is there a way to do do it in VB and/or ASP ?

Thank you.


I know how to read XML from a file.
But I will need to load the XML content from a URL, so when I go to the
URL,
the result is XML file, and I will need to capture the content to a
string.
How can I do that ?
Thank you.

Imports System.Net.WebClient

....

Dim wc As New WebClient
Dim xmlString As String = wc.DownloadString ("http://yoururl")
 
I am using VB and ASP, not .NET.
Is there a way to do do it in VB and/or ASP ?

Thank you.

Beats me... Better to ask on VB.CLASIC group:

microsoft.public.vb.general.discussion
 
Back
Top