ListView not importing data

Posted by ct2k7 on Stack Overflow See other posts from Stack Overflow or by ct2k7
Published on 2010-03-22T00:54:25Z Indexed on 2010/03/22 1:01 UTC
Read the original article Hit count: 469

Filed under:
|
|

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.rss")
    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.

© Stack Overflow or respective owner

Related posts about visual-basic

Related posts about Xml