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");
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top