I have the following XML File:
I am trying to read it with this code:
Dim xmlReader As New XmlTextReader(Filename)
If (xmlReader.NodeType = XmlNodeType.Element) Then
Dim x As String = xmlReader.Name
MsgBox(x & vbCrLf & xmlReader.Value())
This is working as long as I dont have a empty value (<James2 />)
If I have this, it doesnt recognize the NEXT (<James3>)-Value...