SAXParserFactory.GetFeature(String) 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.
Returns the value of the named feature for this factory.
[Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")]
public abstract bool GetFeature(string? name);
[<Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")>]
abstract member GetFeature : string -> bool
Parameters
- name
- String
The name of the feature to retrieve.
Returns
The current value of the feature.
- Attributes
Exceptions
if a parser cannot be created which satisfies the requested configuration.
When the factory does not recognize the feature name.
When the factory recognizes the feature name but cannot report its value.
If name is null in the default Android factory.
Remarks
The default Android factory reads its own feature settings, not the settings of an XML reader. For names that start with http://xml.org/sax/features/, it returns true only when the feature has been set to true. Other names are not recognized. A returned value does not mean that an XML reader supports the feature.
Java documentation for javax.xml.parsers.SAXParserFactory.getFeature(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.