IDocument.CreateProcessingInstruction(String, String) Method

Definition

Creates a ProcessingInstruction node given the specified name and data strings.

[Android.Runtime.Register("createProcessingInstruction", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/ProcessingInstruction;", "GetCreateProcessingInstruction_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IProcessingInstruction? CreateProcessingInstruction (string? target, string? data);
[<Android.Runtime.Register("createProcessingInstruction", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/ProcessingInstruction;", "GetCreateProcessingInstruction_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateProcessingInstruction : string * string -> Org.W3c.Dom.IProcessingInstruction

Parameters

target
String

The target part of the processing instruction.Unlike Document.createElementNS or Document.createAttributeNS, no namespace well-formed checking is done on the target name. Applications should invoke Document.normalizeDocument() with the parameter " namespaces" set to true in order to ensure that the target name is namespace well-formed.

data
String

The data for the node.

Returns

The new ProcessingInstruction object.

Attributes

Exceptions

INVALID_CHARACTER_ERR: Raised if the specified target is not an XML name according to the XML version in use specified in the Document.xmlVersion attribute.
NOT_SUPPORTED_ERR: Raised if this document is an HTML document.

Remarks

Creates a ProcessingInstruction node given the specified name and data strings.

Java documentation for org.w3c.dom.Document.createProcessingInstruction(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