Share via


createProcessingInstruction method

Creates a processing instruction for an XML parser.

 

Syntax

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

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.

 

Standards information

Remarks

The IHTMLDocument7::createProcessingInstruction method is supported only for XML documents.