Transforming XML Documents

The task of converting or transforming an XML document is not trivial. It involves finding a path to specific elements in the document, parsing the document elements and values and mapping them to new values, and potentially applying decision logic at many points along the way.

Fortunately, there are some very useful XML tools available for transformation of documents. APIs such as Saxon provide transform capabilities, and a transform API is part of JAXP. These APIs make use of the Extensible Stylesheet Language for Transformation (XSLT) scripting language to describe the transformation process. This concise language, in combination with the XPATH descriptive syntax, provides a flexible facility for describing XML transformation. ...

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.