Object: ProcessingInstruction
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 |
|---|---|---|---|---|---|
|
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 |
|
|
DOMString |
Returns the style sheet associated with the processing instruction. |
read only |
DOM 2 Events |
4.6 or later |
|
|
DOMString |
Returns the target of the processing instruction. |
read only |
DOM 2 Core |
4.6 or later |