The EntityReference Interface

The EntityReference interface represents a general entity reference such as   or &copyright_notice;. (It is not used for the five predefined entity references &, <, >, ', and ".)

Example 11.13 summarizes the EntityReference interface. You'll notice it declares exactly zero methods of its own. It inherits all of its functionality from the Node superinterface. In an XML document, an entity reference is just a placeholder for the text that will replace it. In a DOM tree, an EntityReference object merely contains the things that will replace the entity reference.

Example 11.13. The EntityReference Interface
package org.w3c.dom;

public interface EntityReference extends Node {

}

The name of ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.