Help Center

Local Navigation

Object: ProcessingInstruction

Availability

BlackBerry® Device Software version 4.6 or later

Extends

Node

The ProcessingInstruction object represents a Processing Instruction for an XML document, which enables you to keep processor-specific information within the context of the document. Processing instructions are specified within the <? and ?> markers.

For instance, instructions on which style sheets to apply can be defined in a processing instruction, even though that is not directly related to the content of the document.

ProcessingInstruction properties

Property name

Type

Description

Status

Support level

Availability

data

DOMString

Specifies the content of the processing instruction. This content includes everything contained between the processing instruction markers.

writable

DOM 2 Core

4.6 or later

sheet

DOMString

Returns the style sheet associated with the processing instruction.

read only

DOM 2 Events

4.6 or later

target

DOMString

Returns the target of the processing instruction.

read only

DOM 2 Core

4.6 or later

Next topic: Object: Text
Previous topic: Notation properties

Was this information helpful? Send us your comments.