Javax.Xml.Parsers.DocumentBuilderFactory.SetFeature Method

Syntax

[Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler")]
public abstract void SetFeature (string name, bool value)

Parameters

name
Feature name.
value
Is feature state true or false.

Exceptions

TypeReason
Javax.Xml.Parsers.ParserConfigurationExceptionif this DocumentBuilderFactory or the DocumentBuilders it creates cannot support this feature.
Java.Lang.NullPointerExceptionIf the name parameter is null.

Remarks

Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory.

Feature names are fully qualified Java.Net.URIs. Implementations may define their own features. An Javax.Xml.Parsers.ParserConfigurationException is thrown if this DocumentBuilderFactory or the DocumentBuilders it creates cannot support the feature. It is possible for an DocumentBuilderFactory to expose a feature value but be unable to change its state.

All implementations are required to support the Javax.Xml.XMLConstants.FeatureSecureProcessing feature. When the feature is:

[Android Documentation]

Requirements

Namespace: Javax.Xml.Parsers
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1