AvailabilityDOM Level 1 XML Inherits from/OverridesNode Entity Properties
DescriptionThis infrequently used interface represents an entity in an XML document type definition (DTD). It is never used with HTML documents. The name of the entity is specified by the nodeName property inherited from the Node interface. The entity content is represented by the child nodes of the Entity node. Note that Entity nodes and their children are not part of the document tree (and the parentNode property of an Entity is always null). Instead, a document may contain one or more references to an entity; see EntityReference for more information. Entities are defined in the DTD of a document, either as part of an external DTD file or as part of an "internal subset" that defines local entities specific to the current document. The DocumentType interface has an entities property that allows Entity nodes to be looked up by name. This is the only way to obtain a reference to an Entity node; because they are part of the document type, Entity nodes never appear as part of the document itself. Entity nodes and all of their descendants are read-only and cannot be edited or modified in any way. See AlsoDocumentType, EntityReference, Notation |