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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access