Share via


Transformer.Transform(ISource, IResult) Method

Definition

Transform the XML Source to a Result.

[Android.Runtime.Register("transform", "(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V", "GetTransform_Ljavax_xml_transform_Source_Ljavax_xml_transform_Result_Handler")]
public abstract void Transform (Javax.Xml.Transform.ISource? xmlSource, Javax.Xml.Transform.IResult? outputTarget);
[<Android.Runtime.Register("transform", "(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V", "GetTransform_Ljavax_xml_transform_Source_Ljavax_xml_transform_Result_Handler")>]
abstract member Transform : Javax.Xml.Transform.ISource * Javax.Xml.Transform.IResult -> unit

Parameters

xmlSource
ISource

The XML input to transform.

outputTarget
IResult

The Result of transforming the xmlSource.

Attributes

Exceptions

If an unrecoverable error occurs during the course of the transformation.

Remarks

Transform the XML Source to a Result. Specific transformation behavior is determined by the settings of the TransformerFactory in effect when the Transformer was instantiated and any modifications made to the Transformer instance.

An empty Source is represented as an empty document as constructed by javax.xml.parsers.DocumentBuilder#newDocument(). The result of transforming an empty Source depends on the transformation behavior; it is not always an empty Result.

Java documentation for javax.xml.transform.Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result).

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