This example extends the edi-to-java
example. After the EDI data is bound to the JavaBean object graph, a custom pipeline reader called BeanXMLReader
marshals the graph to SAX events using XStream. The pipeline feeds the XStream generated event stream to edi:unparser
. The EDI visitor serialises each event in the stream to its EDI counterpart and writes the output to the pipeline execution result. The pipeline result becomes the result of the Smooks execution thanks to the replace
pipeline directive.
mvn clean package
mvn exec:exec