Javax.Xml.Parsers.SAXParserFactory.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)

See Also

Org.Xml.Sax.IXMLReader.SetFeature(string, System.Boolean)

Parameters

name
The name of the feature to be set.
value
The value of the feature to be set.

Exceptions

TypeReason
Javax.Xml.Parsers.ParserConfigurationExceptionif a parser cannot be created which satisfies the requested configuration.
Org.Xml.Sax.SAXNotRecognizedExceptionWhen the underlying XMLReader does not recognize the property name.
Org.Xml.Sax.SAXNotSupportedExceptionWhen the underlying XMLReader recognizes the property name but doesn't support the property.
Java.Lang.NullPointerExceptionIf the name parameter is null.

Remarks

  • true: the implementation will limit XML processing to conform to implementation limits. Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources. If XML processing is limited for security reasons, it will be reported via a call to the registered Org.Xml.Sax.IErrorHandler.FatalError(Org.Xml.Sax.SAXParseException). See Javax.Xml.Parsers.SAXParserparse methods for handler specification.
  • When the feature is false, the implementation will processing XML according to the XML specifications without regard to possible implementation limits.

Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. A list of the core features and properties can be found at

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