Introduction

As we mentioned in the previous chapter, it is often useful to simply convert the contents of an XML document to another form, to transform the contents. Applying this approach to multitiered J2EE development, business tier components can be developed to output data in XML format and the presentation tier can then perform the appropriate transformation to create the presentation needed, whether that presentation is an HTML page or a Swing GUI.

The javax.xml.transform package and its subpackages contain the classes and interfaces that provide for XML transformation. In this chapter we examine the process of transformation and provide an example of using the transformation API.

In developing applications, we also have the need to create ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.