tags:

views:

41

answers:

3

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
+1  A: 
KBoek
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