i am working in a project in that i want to read some data from the remote url can any one help me how to do this function
A:
Have you tried using XDocument.Load
or XmlDocument.Load
?
If those don't do what you want, please give more details.
Jon Skeet
2010-09-21 06:18:01
A:
Along with what @Jon Skeet said there's also the built-in WebClient:
Dim MyData As String
Try
Using WC As New System.Net.WebClient()
MyData = WC.DownloadString("http://www.example.com/text.xml")
End Using
Catch ex As Exception
'Error downloading
End Try
Chris Haas
2010-09-21 21:47:02