Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML DOM internalSubset Property

XML DOM internalSubset Property


DocumentType Object Reference DocumentType Object


Definition and Usage

The internalSubset property returns the internal DTD as a string (without the delimiting brackets), or null if there is none.

Syntax

documentObject.doctype.internalSubset


Example

The following code snippet uses loadXMLDoc() to load "note_internal_dtd.xml" Load into xmlDoc, and return the internal DTD as a string:

xmlDoc=loadXMLDoc("note_internal_dtd.xml");

document.write(xmlDoc.doctype.internalSubset);

Output:


DocumentType Object Reference DocumentType Object