Ah, the power of google. So I looked for about an hour before I posted this and kept looking while I waited on an answer. Here is what I found for myself:
vb Code:
Dim xelement As XElement = XElement.Load("..\..\Employees.xml")
Dim employees As IEnumerable(Of XElement) = xelement.Elements()
' Read the entire XML
For Each employee In employees
Console.WriteLine(employee)
Next employee
I managed to adapt it to:
vb Code:
Dim iTime As String = hours & ":" & minutes & ap
Try
Dim xel As XElement = XElement.Load(xmlDatabase)
Dim ListItem As IEnumerable(Of XElement) = xel.Elements()
For Each item In ListItem
If item.ToString.StartsWith("<ListItem") Then
If iTime.Equals(item.Attribute("StartTime").Value) Then
Dim ax As XAttribute = item.Attributes.ElementAt(1)
Process.Start(ax.Value)
End If
End If
Next
Catch ex As Exception
End Try
And that seems to be doing exactly what I need it to. Thanks for the help google