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

XML DOM - DocumentType Object

XML DOM - DocumentType Object


DocumentType Object

Every document contains a DOCTYPE property, whose value can be 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 a NamedNodeMap containing the notations declared in the DTD.
systemId Returns the system identifier of the external DTD.