Structural Nodes
Within an XML document, a number of syntax structures exist that are not formally part of the content. The following interfaces provide access to the portions of the document that are not related to element data.
DocumentType
The DocumentType
interface provides access to the XML document type
definition’s notations, entities, internal subset, public ID, and
system ID. Since a document can have only one DOCTYPE declaration, only one DocumentType node can exist for a given
document. It is accessed via the doctype attribute of the Document interface. The definition of
the DocumentType interface is
shown in Table
19-6.
Name | Type | Read-only |
Attributes | ||
entities | NamedNodeMap | |
internalSubset | DOMString | |
name | DOMString | |
notations | NamedNodeMap | |
publicId | DOMString | |
systemId | DOMString |
Using additional fields available since DOM Level 2, it is now ...