Skip to content

XML DOM: Entity Object

Understand the Entity object in XML DOM, including its read-only successor nodes, properties like inputEncoding and notationName, and how it represents parsed/unparsed entities.

An Entity object does not have any parent node, and all its successor nodes are read-only.

Entity interface represents a known entity, either parsed or unparsed, in an XML document. The nodeName attribute that is inherited from Node contains the name of the entity.

Properties

Property Description
inputEncoding This specifies the encoding used by the external parsed entity. Its value is null if it is an entity from the internal subset or if it is not known.
notationName For an unparsed entities, it gives the name of the notation and its value is null for the parsed entities.
publicId It gives the name of the public identifier associated with the entity.
systemId It gives the name of the system identifier associated with the entity.
xmlEncoding It gives the xml encoding included as a part of the text declaration for the external parsed entity, null otherwise.
xmlVersion It gives the xml version included as a part of the text declaration for the external parsed entity, null otherwise.
Navigation