Export (0) Print
Expand All

createProcessingInstruction method

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, 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 codeDescription
S_OK

The operation completed successfully.

 

Standards information

Remarks

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft