DOM - ProcessingInstruction Object


Advertisements


ProcessingInstruction gives that application-specific information which is generally included in the prolog section of the XML document.

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 PI starts with a special tag <? and ends with ?>. Processing of the contents ends immediately after the string ?> is encountered.

Attributes

The following table lists the attributes of the ProcessingInstruction object −

Attribute Type Description
data DOMString It is a character that describes the information for the application to process immediately preceding the ?>.
target DOMString This identifies the application to which the instruction or the data is directed.


Advertisements
E-Books Store