O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required