XmlParserContext.InternalSubset Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the internal DTD subset.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public string InternalSubset { get; set; }

Property Value

Type: System.String

The internal DTD subset. For example, this property returns everything between the square brackets <!DOCTYPE doc [...]>.

This property, along with DocTypeName, PublicId, and SystemId, provides all the document type declaration information. It is used to find and load the necessary DTD information so that you get all the default attributes and entities defined in the DTD.

The DTD is used for entity resolution, not for document validation.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: