XML technologies / XML / XML in a Nutshell / DOM reference / Object reference / EntityReference

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

Nodes of type EntityReference represent references embedded in the XML document being read, namely references to entities. Depending on the DOM implementation, there is a corresponding Entity object in the entities list of the docType of the Document instance. This need not necessarily be the case. However, if such an Entity exists, both child nodes represent the text that is to replace the EntityReference.

Java example

// Erzeuge eine neue EntityReference.
EntityReference ndER = doc.createEntityReference("mein_entity");

  

 

 

 

back to top