XmlReader.Create Method creates a new instance with the specified URI and XmlReaderSettings.
Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Dim settings As New XmlReaderSettings()
settings.DtdProcessing = DtdProcessing.Parse
settings.ValidationType = ValidationType.DTD
Dim reader As XmlReader = XmlReader.Create("itemDTD.xml", settings)
While reader.Read()
End While
End Sub
End Class