Mega Code Archive

 
Categories / VB.Net / XML
 

Creates a new XmlReader instance with the specified TextReader

Imports System Imports System.IO Imports System.Xml Public Class Sample   Public Shared Sub Main()         Dim xmlData As String = "<item productID='1'>" & _                                               "<price>5.95</price>" & _                                               "</item>"                  ' Create the XmlReader object.         Dim reader As XmlReader = XmlReader.Create(New StringReader(xmlData))     End Sub End Class