I'm trying to read an XML file with using VB.Net code.
I've got the following little test XML file:
I also have the following VB code:
Dim XMLDoc As New Xml.XmlDocument
Dim XNode As Xml.XmlNode = Nothing
XNode= XMLDoc.ChildNodes(0).ChildNodes(0) 'This should be FirstName
My problem is that:
XNode now contains the node <FirstName>Kosie </FirstName>
If I use XNode.Value, NOTHING is returned. I expected to get "Kosie".
What is wrong?