fgrid / isogen

generator of ISO20022 message access code
MIT License
7 stars 7 forks source link

provide a howto and some examples #3

Open stephanheinze opened 8 years ago

stephanheinze commented 8 years ago

just to demonstrate on how to use the generator

figassis commented 8 years ago

@stephanheinze, I'm making great use of your iso20022 message components. Could you give me a tip on how you generated them? I tried quite a few xsd -> struct generators and none worked as well as your output.

Did you use isogen to generate them? If so, could you give me a hint on how to use it myself?

Thanks and great work!

stephanheinze commented 8 years ago

@figassis thank you for your message. I'm using isogen to generate the iso20022 message structs of github.com/fgrid/iso20022. See my script in the example directory how to use isogen.

The point of isogen`` is the source of truth does not lie in a given xml schema but in the message structure itself. www.iso20022.org provides an eRepository which declares both business and message components.isogen``` is using this information directly to generate the structures. But this way you do not have schema validation as you could get by a xsd based generator.

figassis commented 8 years ago

This is awesome and thank you for the speedy response. I suspected so and was already browsing the repository. Wasn't sure how to browse it (not an eclipse fan).

I'll eventually implement xsd validation. For now I'm mostly concerned about functionality.

Thank you!