XmlReader.Create (String, XmlReaderSettings) creates XmlReader with URI and XmlReaderSettings.
using System;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
publicclass MainClass
{
publicstaticvoid Main()
{
XmlReaderSettings settings = new XmlReaderSettings();
settings.DtdProcessing = DtdProcessing.Parse;
settings.ValidationType = ValidationType.DTD;
XmlReader reader = XmlReader.Create("itemDTD.xml", settings);
while (reader.Read()) { }
}
}