Private Sub loadEvent()
Dim xdocaa As XDocument = XDocument.Load("C:\xml\login2.xml")
Dim sb As New StringBuilder
'asuming you have more than 1 plugin in the xml file
Dim Subjet = From x In xdocaa.Root.<subject> Where x.@name = "Principles of Programming Languages " And x.<subsec>.Value = "800"
For Each el As XElement In Subjet.<all_topic>.<topic> 'xdocaa.Root.Elements.<all_topic>.<topic>
sb.AppendFormat("Topic : " & el.<topicname>.Value & Environment.NewLine & _
"Detail : " & el.<topicdetail>.Value & Environment.NewLine & _
"Teacher : " & el.<topicadviser>.Value & Environment.NewLine & _
"Date : " & el.<topicdate>.Value & Environment.NewLine & _
"--------------------------------------------------" & Environment.NewLine & Environment.NewLine)
Next
'MessageBox.Show(sb.ToString)
txtlogin.Text = sb.ToString
End Sub