次の方法で共有


NamespaceSupport.ProcessName(String, String[], Boolean) Method

Definition

Process a raw XML qualified name, after all declarations in the current context have been handled by #declarePrefix declarePrefix().

[Android.Runtime.Register("processName", "(Ljava/lang/String;[Ljava/lang/String;Z)[Ljava/lang/String;", "GetProcessName_Ljava_lang_String_arrayLjava_lang_String_ZHandler")]
public virtual string[]? ProcessName (string? qName, string[]? parts, bool isAttribute);
[<Android.Runtime.Register("processName", "(Ljava/lang/String;[Ljava/lang/String;Z)[Ljava/lang/String;", "GetProcessName_Ljava_lang_String_arrayLjava_lang_String_ZHandler")>]
abstract member ProcessName : string * string[] * bool -> string[]
override this.ProcessName : string * string[] * bool -> string[]

Parameters

qName
String

The XML qualified name to be processed.

parts
String[]

An array supplied by the caller, capable of holding at least three members.

isAttribute
Boolean

A flag indicating whether this is an attribute name (true) or an element name (false).

Returns

String[]

The supplied array holding three internalized strings representing the Namespace URI (or empty string), the local name, and the XML qualified name; or null if there is an undeclared prefix.

Attributes

Remarks

Process a raw XML qualified name, after all declarations in the current context have been handled by #declarePrefix declarePrefix().

This method processes a raw XML qualified name in the current context by removing the prefix and looking it up among the prefixes currently declared. The return value will be the array supplied by the caller, filled in as follows:

<dl> <dt>parts[0]</dt> <dd>The Namespace URI, or an empty string if none is in use.</dd> <dt>parts[1]</dt> <dd>The local name (without prefix).</dd> <dt>parts[2]</dt> <dd>The original raw name.</dd> </dl>

All of the strings in the array will be internalized. If the raw name has a prefix that has not been declared, then the return value will be null.

Note that attribute names are processed differently than element names: an unprefixed element name will receive the default Namespace (if any), while an unprefixed attribute name will not.

Java documentation for org.xml.sax.helpers.NamespaceSupport.processName(java.lang.String, java.lang.String[], boolean).

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

See also

  • <xref:Org.Xml.Sax.Helpers.NamespaceSupport.DeclarePrefix(System.String%2c+System.String)>
  • Intern()