XML DOM - DocumentTypeObject


DocumentType Object

Each document contains a DOCTYPE attribute, whose value can be either null or a DocumentType object.

The DocumentType object provides an interface for defining the entities of an XML document.

DocumentType object properties

Property Description
entities Returns a NamedNodeMap containing the entities declared in the DTD.
internalSubset Returns the internal DTD as a string.
name Returns the name of the DTD.
notations Returns the NamedNodeMap containing the notations declared in the DTD.
systemId Returns the system identifier of the external DTD.

other extensions