<h1>xercesc::DOMEntityReference Class Reference</h1><!-- doxytag: class="xercesc::DOMEntityReference" --><!-- doxytag: inherits="xercesc::DOMNode" --><code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference.
Inheritance diagram for xercesc::DOMEntityReference:<p><center><imgsrc="classxercesc_1_1DOMEntityReference__inherit__graph.png"border="0"usemap="#xercesc_1_1DOMEntityReference__inherit__map"alt="Inheritance graph"></center>
<center><fontsize="2">[<ahref="graph_legend.html">legend</a>]</font></center><ahref="classxercesc_1_1DOMEntityReference-members.html">List of all members.</a><tableborder="0"cellpadding="0"cellspacing="0">
<code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference.
<p>
Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference. Moreover, the XML processor may completely expand references to entities while building the structure model, instead of providing <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> objects. If it does provide such objects, then for a given <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> node, it may be that there is no <code><aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a></code> node representing the referenced entity. If such an <code><aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a></code> exists, then the subtree of the <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> node is in general a copy of the <code><aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a></code> node subtree. However, this may not be true when an entity contains an unbound namespace prefix. In such a case, because the namespace prefix resolution depends on where the entity reference is, the descendants of the <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> node may be bound to different namespace URIs. <p>
As for <code><aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a></code> nodes, <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> nodes and all their descendants are readonly. <p>
See also the <ahref="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113">Document Object Model (DOM) Level 2 Core Specification</a>.<p>