BizTalk Utilities CV ,   Jobs ,   Code library  
 
javax.xml.transform.Transformer Class
javax.xml.transform.Templates Class
javax.xml.transform.stream.StreamSource Class
javax.xml.transform.stream.StreamResult Class
javax.xml.transform.Source Class
javax.xml.transform.sax.SAXSource Class
javax.xml.transform.sax.SAXResult Class
javax.xml.transform.Result Class
javax.xml.transform.ErrorListener Class
javax.xml.transform.dom.DOMSource Class
javax.xml.transform.dom.DOMResult Class
javax.xml.parsers.SAXParserFactory Class
javax.xml.parsers.SAXParser Class
javax.xml.parsers.DocumentBuilderFactory Class
javax.xml.parsers.DocumentBuilder Class
SAX 2.0 Features and Properties
MSMQ Mode Tool
XML for Software Configuration
XML - Basics.
RTF to XML converter 1.2
<< XSLT
.NET and XML >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :337

 

The javax.xml.transform.TransformerFactory Class

Super Class : java.lang.Object

Members

Signature

Public methods

abstract  Source

getAssociatedStylesheet(Source source, String media, String title, String charset)

abstract  Object

getAttribute(String name)

abstract  ErrorListener

getErrorListener()

abstract  boolean

getFeature(String name)

abstract  URIResolver

getURIResolver()

static TransformerFactory

newInstance()

abstract  Templates

newTemplates(Source source)

abstract  Transformer

newTransformer()

abstract  Transformer

newTransformer(Source source)

abstract  void

setAttribute(String name, Object value)

abstract  void

setErrorListener(ErrorListener listener)

abstract  void

setURIResolver(URIResolver resolver)

Overview

A TransformerFactory instance can be used to create Transformer and Templates objects. The system property that determines which Factory implementation to create is named "javax.xml.transform.TransformerFactory". This property names a concrete subclass of the TransformerFactory abstract class. If the property is not defined, a platform default (org.apache.xalan.processor.TransformerFactoryImpl) is be used.

You can specify the stylesheet to use for transformation, and then obtain new instances of a Transformer instance. You can also use this to generate  a new Templates object for multiple transformations using the same stylesheet.

Method Overviews

Important methods of this class are newTransformer() and newTemplates(Source source)

Example of newTransformer()

newTransformer() method is used to create a new Transformer object that performs a copy of the source to the result.

TransformerFactory  tFactory = TransformerFactory.newInstance();

TransFormer transformer = tFactory.newTransformer();

Example of newTemplates(Source source)

newTemplates(Source source) is used to process the Source into a Templates object, which is a a compiled representation of the source.

TransformerFactory  tFactory = TransformerFactory.newInstance();

Templates template = tFactory.newTemplates(new StreamSource("E:\\topxml\\parameterized.xsl"));


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C

View all Jobs (Add yours)
View all CV (Add yours)



online fax service
swimming pool contractor
teleconferencing services
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP