XML DOM - ProcessingInstruction object

ProcessingInstruction object represents processing instructions.

DocumentType object

ProcessingInstruction object can represent processing instructions.

This rarely used interface represents a processing instruction (or PI) in an XML document. Programmers using HTML documents will not encounter a ProcessingInstruction node.

Processing instructions can be used as a method to retain processor-specific information in the text of an XML document.

IE: Internet Explorer: F: Firefox: O: Opera: W3C: World Wide Web Consortium (Internet Standard)

Properties of ProcessingInstruction object

Attribute Description
data

Sets or returns the content of this processing instruction.

(i.e., the first non-space character after the target to the end character “?>”, but not including “?>”)

target

Returns the target of this processing instruction.

It is the first identifier after “<?”, which specifies the processor for the processing instruction.