DocumentBuilderFactory.SetFeature(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a feature for this DocumentBuilderFactory
and DocumentBuilder
s created by this factory.
[Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler")]
public abstract 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
Parameters
- name
- String
Feature name.
- value
- Boolean
Is feature state true
or false
.
- Attributes
Exceptions
if this DocumentBuilderFactory
or the DocumentBuilder
s
it creates cannot support this feature.
If the name
parameter is null.
Remarks
Set a feature for this DocumentBuilderFactory
and DocumentBuilder
s created by this factory.
Feature names are fully qualified java.net.URI
s. Implementations may define their own features. An ParserConfigurationException
is thrown if this DocumentBuilderFactory
or the DocumentBuilder
s it creates cannot support the feature. It is possible for an DocumentBuilderFactory
to expose a feature value but be unable to change its state.
Earlier versions of this documentation have mandated support for the javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING
feature, but this is not a supported feature on any version of Android.
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.