XmlReader.Create Method creates a new XmlReader instance using the specified stream.
Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Dim fs As New FileStream("C:\data\books.xml", FileMode.OpenOrCreate, FileAccess.Read, FileShare.Read)
Dim reader As XmlReader = XmlReader.Create(fs)
End Sub
End Class