The Document Type defines entities of an XML document. The DocumentType interface represents the DOCTYPE attribute of XML documents. Its node name returns the doctype name. The DocumentType node type value is 10.

Properties of doctype include:

entities

The entities property returns NamedNodeMap containing entities declared in DTD.

Syntax for entities property

documentObject.doctype.entities

internalSubset

The internalSubset property returns a string which is the internal DTD.

Syntax for internalSubset property

documentObject.doctype.internalSubset

name

 The name property returns the name of the DTD.

Syntax for name property

documentObject.doctype.name

notations

The notations property returns NamedNodeMap containing notations declared in DTD.

Syntax for notations property

documentObject.doctype.notations

systemId

The systemid property returns system identifier of the external DTD.

Syntax for systemid property

documentObject.doctype.systemId

 

›› go to examples ››