Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 910 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 910 Bytes

About

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:

  1. The "Main" class in src/main/java/example/Main.java.
  2. The input message in input-message.edi.
  3. smooks-config.xml.
  4. The EdiSax parser configuration in src/main/java/example/edi-to-xml-order-mapping.xml
  5. https://github.com/smooks/smooks-edi-cartridge/blob/master/README.adoc

How to run?

  1. mvn clean package
  2. mvn exec:exec