Javax.Xml.Transform.TransformerFactory.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.Transform.TransformerConfigurationExceptionif this TransformerFactory or the Transformers or Templates it creates cannot support this feature.
Java.Lang.NullPointerExceptionIf the name parameter is null.

Remarks

  • true: the implementation will limit XML processing to conform to implementation limits and behave in a secure fashion as defined by the implementation. Examples include resolving user defined style sheets and functions. If XML processing is limited for security reasons, it will be reported via a call to the registered IErrorListener.FatalError(TransformerException). See TransformerFactory.ErrorListener.
  • false: the implementation will processing XML according to the XML specifications without regard to possible implementation limits.

Set a feature for this TransformerFactory and Transformers or Templates created by this factory.

Feature names are fully qualified Java.Net.URIs. Implementations may define their own features. An Javax.Xml.Transform.TransformerConfigurationException is thrown if this TransformerFactory or the Transformers or Templates it creates cannot support the feature. It is possible for an TransformerFactory 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.Transform
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8