Message-ID: <308308243.4782.1410852822061.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4781_521716192.1410852822060" ------=_Part_4781_521716192.1410852822060 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This tutorial illustrates how Smooks (in conjunction with FreeMa= rker) can be used to perform an XML to XML transformation on a huge mes= sage (GBs).=20
It should be noted however that this tutorial can be used as the basis f= or an character based transformation e.g. EDI to XML, CSV to XML, XML to ED= I etc. It's just a mater of defining the stream parser for the Source (e.g.= the CSV Parser), and modifying the templates for the output.=20
To Build= : "mvn clean install"
To Run: "mvn exec:java"
FreeMarker is an extremely powerful templating engine. One really us= eful feature is the ability to create and use a NodeModel = as the domain model in a templating operation. Smooks adds the ability to p= erform fragment based templating transforms, as well as the ability to use = this model on huge messages (GBs).=20
So the basic structure is the same. We just need to rearrange things a l= ittle.=20