The EntityRef Class

The EntityRef class shown in Example 15.21 represents a defined entity reference such as © or &chapter1;. It is used only for entity references that the parser does not expand. Given a fully validating parser, or even just one that reads the external DTD subset, no EntityRef objects will normally be present in the tree.

Example 15.21. The JDOM EntityRef Class
 package org.jdom; public class EntityRef implements Serializable, Cloneable { protected String name; protected String publicID; protected String systemID; protected Object parent; protected EntityRef(); public EntityRef(String name); public EntityRef(String name, String systemID); public EntityRef(String name, String publicID, String systemID); public EntityRef ...

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.