The EntityReference object represents an entity reference node. If entity references
are expanded by the XML processor while building the structure model, no entity reference
objects will appear in the document tree.
XML does not require a non-validating processor to expand external entities. If this is
the case, the replacement value of the entity may not be available. Where the replacement
value is available, it appears in the child list of the EntityReference object. This
list of child nodes is the same as that of the Entity object.
The resolution of the children of an EntityReference (the
replacement value of the referenced entity) can be loosely evaluated. Actions
such as calling the childNodes method
are assumed to trigger the evaluation. Note that character entities are expanded
by the XML processor and do not appear as entity references, but instead appear
within the character text in Unicode.
An EntityReference has no methods or properties of its own, but inherits those of
the Node object. For details of the values returned by the
nodeName,
nodeType and nodeValue
properties for an EntityReference, see the Node object.
denotes a Microsoft extension to the W3C DOM.
PROPERTIES
attributes Property
This is a read-only property that returns an
NamedNodeMap for nodes that can have
attributes.
Syntax: Node.attributes
baseName Property
This is a read-only property that returns the base name for a node.
Syntax: Node.baseName
childNodes Property
This is a read-only property containing a node list of all children for those elements that
can have them.
Syntax: Node.childNodes
dataType Property
This is a read-only property that specifies the data type for the node.
Syntax: Node.dataType
definition Property
This property returns the definition of the node in the DTD or schema.
Syntax: Node.definition
firstChild Property
This is a read-only property that returns the first child node of a node. If there is none,
it returns null.
Syntax: Node.firstChild
lastChild Property
This is a read-only property that returns the last child node of a node. If there is none,
it returns null.
Syntax: Node.lastChild
namespaceURI Property
This property is read-only and returns the URI (Universal Resource Indentifier) of the
namespace.
Syntax: Node.namespaceURI