次の方法で共有


IContentHandler.ProcessingInstruction(String, String) Method

Definition

Receive notification of a processing instruction.

[Android.Runtime.Register("processingInstruction", "(Ljava/lang/String;Ljava/lang/String;)V", "GetProcessingInstruction_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.IContentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ProcessingInstruction (string? target, string? data);
[<Android.Runtime.Register("processingInstruction", "(Ljava/lang/String;Ljava/lang/String;)V", "GetProcessingInstruction_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.IContentHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ProcessingInstruction : string * string -> unit

Parameters

target
String

the processing instruction target

data
String

the processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target

Attributes

Exceptions

any SAX exception, possibly wrapping another exception

Remarks

Receive notification of a processing instruction.

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 characters(), processing instruction data may have characters that need more than one char value.

Java documentation for org.xml.sax.ContentHandler.processingInstruction(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to