This example illustrates how to hook the edi:parser into a Smooks based transform (filter operation). It's another example of how non-XML streams can be processed by Smooks (see the "csv-to-xml" example).
In this example, we simply configure in the EdiSax parser to process the EDI stream into XML. We don't perform any other transforms on the underlying data. For an example of how other transform operations can be built on top of this edi-to-xml transform, see the "edi-to-java" example.
See:
- The "Main" class in src/main/java/example/Main.java.
- The input message in input-message.edi.
- smooks-config.xml.
- The EdiSax parser configuration in src/main/java/example/edi-to-xml-order-mapping.xml
- https://github.com/smooks/smooks-edi-cartridge/blob/master/README.adoc
mvn clean package
mvn exec:exec