Creates a ProcessingInstruction object with the specified name and data.

[VBScript]
Public Function CreateProcessingInstruction( _
   ByVal target As String, _
   ByVal data As String _
) As ProcessingInstruction
[JScript]
public function CreateProcessingInstruction(
   target : String,
   data : String
) : ProcessingInstruction;

Parameters

target
The name of the processing instruction.
data
The data for the processing instruction.

Return Value

The new ProcessingInstruction.

Remarks

Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.

See Also

Document Object | Document Members | DOM Namespace