createProcessingInstruction method

[This documentation is preliminary and is subject to change.]

Creates a processing instruction for an XML parser.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

Syntax

HRESULT retVal = object.createProcessingInstruction(bstrTarget, bstrData, );

Standards information

Parameters

  • bstrTarget [in]
    Type: BSTR

    A BSTR value that contains the name of the processing instruction.

  • bstrData [in]
    Type: BSTR

    A BSTR value that contains the data for the processing instruction.

  • newProcessingInstruction [out, retval]
    Type: IDOMProcessingInstruction

    The address of a pointer to an IDOMProcessingInstruction interface that receives a reference to the processing instruction.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The operation completed successfully.

 

Remarks

The createProcessingInstruction method is supported only for XML documents.

 

 

Build date: 1/26/2012