Dela via


Element.RequireChild Method

Definition

Overloads

RequireChild(String)

Gets the child element with the given name.

RequireChild(String, String)

Gets the child element with the given name.

RequireChild(String)

Gets the child element with the given name.

[Android.Runtime.Register("requireChild", "(Ljava/lang/String;)Landroid/sax/Element;", "GetRequireChild_Ljava_lang_String_Handler")]
public virtual Android.Sax.Element? RequireChild (string? localName);
[<Android.Runtime.Register("requireChild", "(Ljava/lang/String;)Landroid/sax/Element;", "GetRequireChild_Ljava_lang_String_Handler")>]
abstract member RequireChild : string -> Android.Sax.Element
override this.RequireChild : string -> Android.Sax.Element

Parameters

localName
String

Returns

Attributes

Remarks

Gets the child element with the given name. Uses an empty string as the namespace. We will throw a org.xml.sax.SAXException at parsing time if the specified child is missing. This helps you ensure that your listeners are called.

Java documentation for android.sax.Element.requireChild(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

RequireChild(String, String)

Gets the child element with the given name.

[Android.Runtime.Register("requireChild", "(Ljava/lang/String;Ljava/lang/String;)Landroid/sax/Element;", "GetRequireChild_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Sax.Element? RequireChild (string? uri, string? localName);
[<Android.Runtime.Register("requireChild", "(Ljava/lang/String;Ljava/lang/String;)Landroid/sax/Element;", "GetRequireChild_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member RequireChild : string * string -> Android.Sax.Element
override this.RequireChild : string * string -> Android.Sax.Element

Parameters

uri
String
localName
String

Returns

Attributes

Remarks

Gets the child element with the given name. We will throw a org.xml.sax.SAXException at parsing time if the specified child is missing. This helps you ensure that your listeners are called.

Java documentation for android.sax.Element.requireChild(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