Creates a processing instruction for an XML parser.
HRESULT createProcessingInstruction( BSTR bstrTarget, BSTR bstrData, IDOMProcessingInstruction **newProcessingInstruction );
- [in] A BSTR value that contains the name of the processing instruction.
- [in] A BSTR value that contains the data for the processing instruction.
- [out, retval] The address of a pointer to an IDOMProcessingInstruction interface that receives a reference to the processing instruction.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_NOT_SUPPORTED_ERR The requested operation is not supported.
The IHTMLDocument7::createProcessingInstruction method is supported only for XML documents.