Name

Entity

Synopsis

The Entity object represents a given general XML entity’s replacement value. Depending on whether a given DOM implementation is validating or nonvalidating, and whether it chooses to expand entity references inline during parsing, Entity objects may not be available to the DOM user.

Java example

// Locate the my_entity entity declaration
Entity ndEnt = (Entity)(doc.getDoctype( ).getEntities( ).
    getNamedItem("my_entity"));

Attributes

The following read-only attributes are defined for the Entity object:

Get XML in a Nutshell, 3rd Edition 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.