Reading XML Files in VB.NET
XmlTextReader class is a class you might want to look into if you want to read XML files. Just pass your XML file as an argument when you create XmlTextReader object and call read() method to read the document.
XmlTextReader class is a class you might want to look into if you want to read XML files. Just pass your XML file as an argument when you create XmlTextReader object and call read() method to read the document.
After calling read method, you can go though the document node by node and get the data.
Source Code:
Imports System
Imports System.Xml
Module Module1
Sub Main()
' Open an XML file
Dim reader As XmlTextReader = New XmlTextReader("C:\\out.xml")
While reader.Read()
Console.WriteLine(reader.Name)
End While
End Sub
End Module