Help Center

Local Navigation

Object: Entity

Availability

BlackBerry® Device Software version 4.6 or later

Extends

Node

The Entity object represents any entity in an XML document. Entities are declarations of abbreviated text or other nodes within an XML document, which can be inserted at various places in an XML document using EntityReference objects.

The Entity name is stored in the Node.nodeName property. However, the actual content of the entity is contained within the Entity node’s children. An Entity node has no parent; the Node.parentNode property for an entity will always be null.

Entity nodes and their children are read only and can not be modified once they have been added to a document. If you need to change the content of an Entity object, you must create a new one, then update all the EntityReference objects that referred to the old Entity so that they refer to the new Entity instead.

Entity properties

Property name

Type

Description

Status

Support level

Availability

notationName

DOMString

The name of the notation for an unparsed entity. For parsed entities, the value of this property is null.

read only

DOM 2 Core

4.6 or later

publicId

DOMString

The public identifier associated with the entity.

read only

DOM 2 Core

4.6 or later

systemId

DOMString

The system identifier associated with this entity.

read only

DOM 2 Core

4.6 or later

Previous topic: Element methods

Was this information helpful? Send us your comments.