Have you ever wanted to generate an xml schema (XSD) from a java class?
Took me a little while to track this down and hopefully google will rank it a little bit higher by me blogging about it for others out there.
https://jaxb.dev.java.net/guide/Invoking_schemagen_programatically.html
JAXB has a nice little utility which will take a java class and generate a xml schema and can be run in ant/maven, run through the CLI or programatically.
I personally find it easier being a java guy to think in java over xsd. :)
Enjoy!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment