XML DOM » ProcessingInstruction » target

Syntax:
processingInstruction.target

This is a read-only property that returns the 'target' of a ProcessingInstruction.

The target property is read-only and returns the 'target' of a processing instruction. This consists of the first token following the tag, which represents the application to which the processing instruction is directed. This value is the same as that returned by the nodeName property.

Examples

Code:
Set PI = objXMLDoc.firstChild
document.write(PI.target)
Output:
xml
Explanation:

This example uses a typical processing instruction for an XML document:

<?xml version="1.0"?>

The code creates a ProcessingInstruction node and then displays the value contained in the target property.

Language(s): VBScript