' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Xml

Namespace E
    Class MainClass
        Public Shared Sub Main(ByVal args As String())
            Dim doc As XmlDocument = New XmlDocument
            doc.Load("C:\spiller.xml")
            Dim xxx As XmlNode = doc.SelectSingleNode("//doc/klub/spillere/spiller[navn='xxx']")
            Console.WriteLine("xxx: " + (Not (xxx Is Nothing)))
            Dim yyy As XmlNode = doc.SelectSingleNode("//doc/klub/spillere/spiller[navn='yyy']")
            Console.WriteLine("yyy: " + (Not (yyy Is Nothing)))
        End Sub
    End Class 
End Namespace
