Skip to main content

XML DOM: ProcessingInstruction Object

The ProcessingInstruction object represents a processing instruction.

A processing instruction is used as a way to keep processor-specific information in the text of the XML document.

More in detail, Processing instructions (PIs) can be used to pass information to applications. PIs can appear anywhere in the document outside the markup. They can appear in the prolog, including the document type definition (DTD), in textual content, or after the document.

A ProcessingInstruction starts with a special tag <? and ends with ?>. Processing of the contents ends immediately after the string ?> is encountered.

Properties

PropertyDescription
dataSets or returns the content of this processing instruction
targetReturns the target of this processing instruction

Table of Contents