The Entity Interface
The Entity interface represents a parsed or unparsed general entity declared in a document's DTD. (DOM does not expose parameter entities.) A map of the entities declared in a document is available from the getEntities() method of the DocumentType interface. However, entities are not part of the tree structure, and the parent of an entity is always null.
An Entity object represents the actual storage unit. It does not represent the entity reference such as Ω or ©right; that appears in the instance document, but rather the replacement text to which that reference points. For parsed entities that the XML parser has resolved, the descendants of the Entity object form a read-only tree containing the XML markup for which ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access