Method ProcessingInstruction
ProcessingInstruction(String, String)
Receive notification of a processing instruction.
Declaration
void ProcessingInstruction(string target, string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | the processing instruction target |
System.String | data | the processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target |
Remarks
The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.
A SAX parser must never report an XML declaration(XML 1.0, section 2.8) or a text declaration(XML 1.0, section 4.3.1) using this method.
Like Characters(Char[], Int32, Int32), processing instruction
data may have characters that need more than one char
value.
Exceptions
Type | Condition |
---|---|
SAXException | any SAX exception, possibly wrapping another exception |