Reading an XML File in VB.NET
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
Reading an XML file. There are two ways to read it. Using xmldocument or XmlTextReader, loading the XML file in a dataset. In the example below, change the string value in the Item() collection to match your column names and change the values for the ReadXml() and InferXmlSchema() methods accordingly.
Instructions: Copy the declarations and code below and paste directly into your VB project.