XmlReaderSettings.XmlResolver sets the XmlResolver used to access external documents.
Imports System
Imports System.Net
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Dim myResolver As New XmlSecureResolver(New XmlUrlResolver(), "http://serverName/data/")
myResolver.Credentials = CredentialCache.DefaultCredentials
Dim settings As New XmlReaderSettings()
settings.XmlResolver = myResolver
Dim reader As XmlReader = XmlReader.Create("http://serverName/data/books.xml", settings)
End Sub
End Class