I have a requirement to convert XML to EDI. I have searched a lot for open source free libraries which full fill my need, but could not find any.
So I decided to write my own logic.
Below are my requirements for an application I am going to execute.
Input of the application is: XML data
Output of the application is: EDI (Electronic Data Interchange) representation of the XML data.
I have to apply some business rules on XML data and generate the EDI representation.
Here is my design for the requirement:
Is my design looks good? Any suggestions would really help me.
Recently I had a project involving edifact parsing and generation. I used http://www.smooks.org/ framework for that purpose.
Using the framework mentioned above your application logic steps might be the following:
Smooks components could be extended in case some custom and/or client specific edifact format needed.
Here is the usage example to get you started: https://github.com/lunatech-labs/smooks-examples/blob/master/edifact-in-code-manipulation/src/main/java/example/Main.java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With