ParserAdapter.SetFeature(String, Boolean) Method

Definition

Set a feature flag for the parser.

[Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler")]
public virtual void SetFeature (string? name, bool value);
[<Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler")>]
abstract member SetFeature : string * bool -> unit
override this.SetFeature : string * bool -> unit

Parameters

name
String

The feature name, as a complete URI.

value
Boolean

The requested feature value.

Implements

Attributes

Exceptions

If the feature can't be assigned or retrieved.

If the feature can't be assigned that value.

Remarks

Set a feature flag for the parser.

The only features recognized are namespaces and namespace-prefixes.

Java documentation for org.xml.sax.helpers.ParserAdapter.setFeature(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.IXMLReader.SetFeature(System.String%2c+System.Boolean)>