Compartilhar via


ISAXContentHandler::processingInstruction Method

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method receives notification of a processing instruction. The reader invokes the processingInstruction method once for each processing instruction found. Note that processing instructions can occur before or after the main document element.

Syntax

HRESULT processingInstruction(
  const wchar_t* pwchTarget,
  int cchTarget,
  const wchar_t* pwchData,
  int cchData
);

Parameters

  • pwchTarget
    [in] Pointer to the target for the processing instruction. The target is the first piece of the processing instruction. For example, (xml - stylesheet) is the target for the processing instruction, <?xml – stylesheet href="sample.css" type="text/css" title="Sample" ?>.
  • cchTarget
    [in] Length of the target string.
  • pwchData
    [in] Pointer to the processing instruction data or Null (if none is supplied).
  • cchData
    [in] Length of the processing instruction string.

Return Value

  • S_OK
    Returned if no errors occur.
  • E_FAIL
    Returned if the parse operation should be aborted.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ISAXContentHandler