Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
ErrorListener |
To provide customized error handling, implement this interface and
use the setErrorListener method to register an instance of the
implementation with the Transformer .
|
Result |
An object that implements this interface contains the information
needed to build a transformation result tree.
|
Source |
An object that implements this interface contains the information
needed to act as source input (XML source or transformation instructions).
|
SourceLocator |
This interface is primarily for the purposes of reporting where
an error occurred in the XML source or transformation instructions.
|
Templates |
An object that implements this interface is the runtime representation of processed
transformation instructions.
|
URIResolver |
An object that implements this interface that can be called by the processor
to turn a URI used in document(), xsl:import, or xsl:include into a Source object.
|
Classes
OutputKeys |
Provides string constants that can be used to set
output properties for a Transformer, or to retrieve
output properties from a Transformer or Templates object.
|
Transformer |
An instance of this abstract class can transform a
source tree into a result tree.
|
TransformerFactory |
A TransformerFactory instance can be used to create
Transformer and
Templates objects.
|
Exceptions
Errors
Interfaces
Classes
Exceptions
Errors
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# javax.xml.transform\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\njavax.xml.transform\n===================\n\nInterfaces\n----------\n\n|---------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ErrorListener](/reference/javax/xml/transform/ErrorListener) | To provide customized error handling, implement this interface and use the `setErrorListener` method to register an instance of the implementation with the [Transformer](/reference/javax/xml/transform/Transformer). |\n| [Result](/reference/javax/xml/transform/Result) | An object that implements this interface contains the information needed to build a transformation result tree. |\n| [Source](/reference/javax/xml/transform/Source) | An object that implements this interface contains the information needed to act as source input (XML source or transformation instructions). |\n| [SourceLocator](/reference/javax/xml/transform/SourceLocator) | This interface is primarily for the purposes of reporting where an error occurred in the XML source or transformation instructions. |\n| [Templates](/reference/javax/xml/transform/Templates) | An object that implements this interface is the runtime representation of processed transformation instructions. |\n| [URIResolver](/reference/javax/xml/transform/URIResolver) | An object that implements this interface that can be called by the processor to turn a URI used in document(), xsl:import, or xsl:include into a Source object. |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OutputKeys](/reference/javax/xml/transform/OutputKeys) | Provides string constants that can be used to set output properties for a Transformer, or to retrieve output properties from a Transformer or Templates object. |\n| [Transformer](/reference/javax/xml/transform/Transformer) | An instance of this abstract class can transform a source tree into a result tree. |\n| [TransformerFactory](/reference/javax/xml/transform/TransformerFactory) | A TransformerFactory instance can be used to create [Transformer](/reference/javax/xml/transform/Transformer) and [Templates](/reference/javax/xml/transform/Templates) objects. |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [TransformerConfigurationException](/reference/javax/xml/transform/TransformerConfigurationException) | Indicates a serious configuration error. |\n| [TransformerException](/reference/javax/xml/transform/TransformerException) | This class specifies an exceptional condition that occurred during the transformation process. |\n\nErrors\n------\n\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [TransformerFactoryConfigurationError](/reference/javax/xml/transform/TransformerFactoryConfigurationError) | Thrown when a problem with configuration with the Transformer Factories exists. |\n\n-\n\n Interfaces\n ----------\n\n - [ErrorListener](/reference/javax/xml/transform/ErrorListener)\n - [Result](/reference/javax/xml/transform/Result)\n - [Source](/reference/javax/xml/transform/Source)\n - [SourceLocator](/reference/javax/xml/transform/SourceLocator)\n - [Templates](/reference/javax/xml/transform/Templates)\n - [URIResolver](/reference/javax/xml/transform/URIResolver)\n-\n\n Classes\n -------\n\n - [OutputKeys](/reference/javax/xml/transform/OutputKeys)\n - [Transformer](/reference/javax/xml/transform/Transformer)\n - [TransformerFactory](/reference/javax/xml/transform/TransformerFactory)\n-\n\n Exceptions\n ----------\n\n - [TransformerConfigurationException](/reference/javax/xml/transform/TransformerConfigurationException)\n - [TransformerException](/reference/javax/xml/transform/TransformerException)\n-\n\n Errors\n ------\n\n - [TransformerFactoryConfigurationError](/reference/javax/xml/transform/TransformerFactoryConfigurationError)"]]