DocumentType Interface

The DocumentType interface in the DOM level 1 Core provides an interface to the list of Entities and Notations that are defined for the document.
IDL Definition

interface DocumentType : Node {

     readonly attribute  DOMString        name;
     readonly attribute  NamedNodeMap     entities;
     readonly attribute  NamedNodeMap     notations;
};

Semantic Requirements

    Attributes

  1. The name attribute contains the name of the DTD.
  2. The entities attribute contains a NamedNodeMap containing the general entities both internal and externals.
  3. Duplicate entities are discarded.
  4. Every node in the map contained in the entities attribute implements the Entity interface.
  5. The notations attribute contains a NamedNodeMap containing the notations declared in the DTD.
  6. Every node in the map contained in the notations attribute implements the Notation interface.

If you have comments or suggestions, email me at mbrady@nist.gov