Using the XmlResolver Property
The XmlResolver property provides write-only access to the object used to resolve the location of the file being loaded. The XmlResolver is an abstract class that is used for resolving remote resources. By default, the XmlTextReader uses the XmlUrlResolver with no credentials.
On the desktop .NET Framework, the XmlResolver is also used to resolve DTD references, but this is not supported on the .NET Compact Framework. If a DocumentType node is encountered, the XmlTextReader will throw an XmlException.
This property can be changed at any time and takes effect the next time a read operation is executed. In most cases the XmlResolver will be used only to load the XmlTextReader. Because there will be no DTD information ...