XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> IBM, XSLT and Java Tutorials -> Using SAXTransformerFactory

Using SAXTransformerFactory

Date: Sep. 5, 2001
Link: http://www-106.ibm.com/developerworks/xml/library/x-tipsxtf/?open&l=136,t=grx
Source Author or Organization: Benoit Marchal, Pineapple Software, IBM developerWorks

This is a tutorial explaining how to use the SAXTransformerFactory from Benoit Marchal, author of Applied XML Solutions, XML in the Enterprise and XML by Example.

The SAXTransformerFactory Java class simulates a Simple Application Programming Interface for XML (SAX) parser, feeding events directly to an Extensible Stylesheet Language Transformations (XSLT) processor and eliminating the need to use a separate SAX parsing application.

Java files saved as XML may be postprocessed directly with a stylesheet to HTML or raw XML output. Some familiarity with SAX parsing and TRaX is assumed. Java code samples for several techniques are given. All samples require Transformation API for XML (TRaX).