0

Hello im making this xml reader that outputs links to listbox, the xml code is like this.

<item>
        <title>file1</title>
        <category>myfiles</category>
        <link>http://google.com</link>
        </item>
<item>
        <title>file2</title>
        <category>myfiles</category>
        <link>http://yahoo.com</link>
        </item>

My code looks like this, it works but i would like that i could click the File1 in listbox and it would work like link.
now i just outputs like this. "file1myfileshttp://google.com"

 Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click

        ListBox2.Items.Clear()
            Dim doc As New System.Xml.XmlDocument
        doc.Load("http://mysite.com/myxml.xml")

        Dim List = doc.GetElementsByTagName("item")
        For Each item As System.Xml.XmlElement In List

            ListBox2.Items.Add(item.InnerText)

        Next



    End Sub
2
Contributors
4
Replies
38
Views
3 Years
Discussion Span
Last Post by Goffy
0

Could you link some example? i could find anything

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.