Udostępnij za pośrednictwem


Transformer.SetOutputProperty(String, String) Method

Definition

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

[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);
[<Android.Runtime.Register("setOutputProperty", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetOutputProperty_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SetOutputProperty : string * string -> unit

Parameters

name
String

A non-null String that specifies an output property name, which may be namespace qualified.

value
String

The non-null string value of the output property.

Attributes

Exceptions

If 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 &lt;xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/&gt;, 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 #setOutputProperties won't be effected by calling this method.

Java documentation for javax.xml.transform.Transformer.setOutputProperty(java.lang.String, 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.

Applies to

See also