Message-ID: <18834658.19152.1406741461582.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_19151_443246243.1406741461581" ------=_Part_19151_443246243.1406741461581 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This tutorial illustrates is how to generate a stream of SAX eve= nts from a CSV stream and how that stream of SAX events feeds into Smooks t= o generate an XML model that can be transformed further (in this case it is= not).=20
Other Relevant Info:=20
To Build= : "mvn clean install"
To Run: "mvn exec:java"
This is a very simple example that illustrates how Smooks to configure i= n a non-XML stream parser (CSV) into Smooks.=20
So here's the source csv file that is to be transformed:=20 =20
And this is the expected result of our transformation (as generated by t= he CSVParser):=20 =20
We simply specify the CSVParser as the stream = parser. More transformation configurations could be added to transform this= message further.=20
Here's the configuration ("smooks-config.xml"):=20 =20
Again, it's exactly the same as with the java-basic tutorial:=20 =20
Of course, you'd typically cache the Smooks instance.=20
See the example/Main.java in the example source.