Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4.0

Other versions are also available for the following:
.NET Framework Class Library
System.Xml.Resolvers Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The System.Xml.Resolvers namespace provides support for prepopulating the cache with DTDs or XML streams.

The System.Xml.Resolvers namespace defines the XmlPreloadedResolver and the XmlKnownDtds enumeration.

XmlPreloadedResolver is used as a resolver when automatic calls to the network are not desired or are not possible. For example, this type can be used for loading cached external DTDs. Another scenario is loading XHTML and using XmlPreloadedResolver to preload well-known DTDs that are defined in XHTML 1.0. Preloading a well-known DTD does not invoke any network connections because these DTDs are already embedded in the System.Xml.Utils assembly. Currently, XmlPreloadedResolver includes XHTML 1.0 and RSS 0.91 DTDs.

The XmlKnownDtds enumeration defines which well-known DTDs the XmlPreloadedResolver recognizes. The XmlKnownDtds enumeration contains the Xhtml10, Rss091, All, and None values.

XmlKnownDtd.Xhtml10 specifies that the T:System.Xml.Resolvers.XmlPreloadedResolver will recognize DTDs and entities that are defined in XHTML 1.0. For more information about XHTML, see the XHTML 1.0 specification.

XmlKnownDtd.Rss091 specifies that the T:System.Xml.Resolvers.XmlPreloadedResolver will recognize DTDs and entities that are defined in RSS 0.91.

XmlKnownDtd.All specifies that the XmlPreloadedResolver will recognize all currently supported DTDs. This is the default behavior.

XmlKnownDtd.None specifies that the XmlPreloadedResolver will not recognize any of the predefined DTDs.

NoteNote

When the XmlPreloadedResolver preloads a well-known DTD, it does not invoke network connections because the DTDs are already embedded in the System.Xml.Utils assembly.

  ClassDescription
Public classXmlPreloadedResolverThe XmlPreloadedResolver type is used to prepopulate the cache with DTDs or XML streams.
  EnumerationDescription
Public enumerationXmlKnownDtdsThe XmlKnownDtds enumeration is used by the XmlPreloadedResolver and defines which well-known DTDs that the XmlPreloadedResolver recognizes.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker