Name
Entity — an entity in an XML DTD
Availability
DOM Level 1 XML
Inherits from/Overrides
Node → Entity
Properties
-
readonly String notationName
The notation name (for unparsed entities), or
null
if there is none (for parsed entities). See thenotations
property of DocumentType for a way to look up a Notation node by name.-
readonly String publicId
The public identifier for this entity, or
null
if none was specified.-
readonly String systemId
The system identifier for this entity, or
null
if none was specified.
Description
This 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 ...
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.