The DOMDocumentType object represents the document type definition (DTD) portion of an XML document.
The DOMDocumentType object inherits the properties and methods of the DOMNode object.
Document's <!DOCTYPE> element is reflected in Document.doctype attribute. Value of this attribute is either null or DocumentType object.
Instance Properties
name |
A string denoting the name of the DTD that immediately follows the DOCTYPE keyword.
In XML, the name of the DTD must match that of the document element.
|
entities |
A
DOMNamedNodeMap
object containing the general entities both external and internal. Each node in the node map is a
DOMEntity
object. |
notations |
A
DOMNamedNodeMap
containing the notations declared in the DTD. Each node in the node map is a
DOMNotation
object. |
publicID |
The public identifier of the external subset. |
systemID |
The system identifier of the external subset. |
internalSubset |
A string denoting the internal subset. | |