tags:

views:

14

answers:

1

Hello, I'm trying to import data into a listview and this is the code I'm using:

Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim doc As New XmlDocument
    doc.Load("http://user:[email protected]/1/statuses/mentions.xml")
    Dim nodes As XmlNodeList = doc.SelectNodes("Statuses/Status")
    For Each node As XmlNode In nodes
        Dim text As String = node.SelectSingleNode("text").InnerText
        Dim time As String = node.SelectSingleNode("created_at").InnerText
        Dim screen_name As String = node.SelectSingleNode("user/screen_name").InnerText
        ListView1.Items.Add(New ListViewItem(New String() {screen_name, text, time}))
    Next

End Sub

Any ideas what's going wrong here? User and password are correct.

A: 

Would be brilliant if I hadn't typed a typo in the URL!

Shamil