Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlDocumentType::InternalSubset Property

 

Gets the value of the document type definition (DTD) internal subset on the DOCTYPE declaration.

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

public:
property String^ InternalSubset {
	String^ get();
}

Property Value

Type: System::String^

The DTD internal subset on the DOCTYPE. If there is no DTD internal subset, String.Empty is returned.

The following example displays information about the DocumentType node.

#using <System.Xml.dll>

using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{

   // Create the XmlDocument.
   XmlDocument^ doc = gcnew XmlDocument;
   doc->LoadXml( "<!DOCTYPE book [<!ENTITY h 'hardcover'>]>"
   "<book genre='novel' ISBN='1-861001-57-5'>"
   "<title>Pride And Prejudice</title>"
   "<style>&h;</style>"
   "</book>" );

   // Display information on the DocumentType node.
   XmlDocumentType^ doctype = doc->DocumentType;
   Console::WriteLine( "Name of the document type:  {0}", doctype->Name );
   Console::WriteLine( "The internal subset of the document type:  {0}", doctype->InternalSubset );
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft