Hi @Havooma ,
Please try the following solution.
It is using LINQ to XML API.
It is available in the .Net Framework since 2007.
VB.NET
Sub Main
Const inputFile As String = "e:\Temp\Havooma.xml"
Dim xdoc As XDocument = XDocument.Load(inputFile)
Dim xmlNode As String = xdoc.Descendants("given") _
.Where(Function(x) x.Attribute("type").Value.Equals("type1")) _
.FirstOrDefault()?.Parent.Name.ToString()
Console.Write(xmlNode)
End Sub
Output
transfer1