Receives notification of a processing instruction. The reader invokes the processingInstruction
method once for each processing instruction found. Processing instructions can occur before or after the main document element.
Sub processingInstruction(strTarget As String, strData As String)
xml-stylesheet
is the target for the following processing instruction: <?xmlstylesheet type="text/css" href="sample.css"?>
.type="text/css" href="sample.css"
is the data for the following processing instruction: <?xmlstylesheet type="text/css" href="sample.css"?>
If failed, the ContentHandler
raises a trappable error.
The following example shows how to use the processingInstruction
method to pass a processing instruction, unchanged, into a text box (Text1) on the application form (Form1) that is used to display the output of the reader.
Private Sub IVBSAXContentHandler_processingInstruction(strTarget As String, strData As String) Form1.Text1.Text = Form1.Text1.Text & _ "<?" & strTarget & " " & strData & "?>" & vbCrLf End Sub
HRESULT processingInstruction( [in] const wchar_t * pwchTarget, [in] int cchTarget, [in] const wchar_t * pwchData, [in] int cchData);
xml-stylesheet
is the target for the following processing instruction: <?xmlstylesheet href="sample.css" type="text/css" title="Sample" ?>
.To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
Applies to: ISAXContentHandler/IVBSAXContentHandler Interface