Javax.Xml.Transform.Transformer.SetOutputProperty Method
Set an output property that will be in effect for the transformation.

Syntax

[Android.Runtime.Register("setOutputProperty", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetOutputProperty_Ljava_lang_String_Ljava_lang_String_Handler")]
public abstract void SetOutputProperty (string name, string value)

See Also

OutputKeys

Parameters

name
A non-null String that specifies an output property name, which may be namespace qualified.
value
The non-null string value of the output property.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionIf the property is not supported, and is not qualified with a namespace.

Remarks

Set an output property that will be in effect for the transformation.

Pass a qualified property name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.

For example, if a URI and local name were obtained from an element defined with <xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/>, then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.

The Properties object that was passed to Transformer.OutputProperties won't be effected by calling this method.

[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