A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
Hi @Simon ,
Please try the following solution.
VB.NET
Sub Main
Const filename As String = "e:\Temp\ProgsOpn.xml"
Dim xdoc As XDocument = XDocument.Load(filename)
Dim ProgsOpn = xdoc.Descendants("ProgsOpn")
For Each elem In ProgsOpn.Elements()
Console.WriteLine($"{elem.Name}='{elem.Value}'")
Next
Dim el1 As String = xdoc.Descendants("UnitIDO").FirstOrDefault()?.Value
Dim el2 As String = xdoc.Descendants("NotExistingElement").FirstOrDefault()?.Value
Console.WriteLine($"existing element: {el1}")
Console.WriteLine($"not existing element: {el2}")
End Sub