' 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

Module Main
    Sub Main()
        Dim doc As XmLDocument = New XmlDocument
        doc.Load("C:\test.xml")
        Dim n As XmlNode = doc.SelectSingleNode("//SNAPSHOT/SECTION[@Name='Info']/PROPERTY[@Name='Audit_Agent']")
        Console.WriteLine(n.OuterXml)
        Console.WriteLine(n.Attributes("Value").Value)
    End Sub
End Module
