PROPERTY:  ProcessingInstruction::target

ProcessingInstruction.target

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.

The following 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.

Code (VBScript):
Set PI = objXMLDoc.firstChild
document.write(PI.target)

Output:
xml



Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information