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

Availability

notationName

String

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

read only

4.6 or later

publicId

String

The public identifier associated with the entity.

read only

4.6 or later

systemId

String

The system identifier associated with this entity.

read only

4.6 or later

Previous topic: Method: setAttributeNS()

Was this information helpful? Send us your comments.