XML VB.Net

Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
  Public Shared Sub Main()
        Dim settings as XmlReaderSettings = new XmlReaderSettings()
        settings.IgnoreComments = true
        settings.IgnoreProcessingInstructions = true
        settings.IgnoreWhitespace = true
        Dim resolver as XmlUrlResolver = new XmlUrlResolver()
        resolver.Credentials = System.Net.CredentialCache.DefaultCredentials
        
        settings.XmlResolver = resolver
        
        Dim reader as XmlReader = XmlReader.Create("http://ServerName/data/books.xml", settings)
    End Sub
End Class