I have a requirement in which my front-end screen creates an XSD at run time.
After which i need to create Java Classes for the same then zip it into an war file. all this needs to be done at run time and within JVM.
I have researched on this and found that xjc( xjc -p foo myschema.xsd ) tool command. Unfortunately it seems that the tool cannot be run from inside my java application.
There is an Process API to run the tool from Java, but i think it will make it OS dependent.
Please help me.
I need to generated Java Source Code or direct Binaries(Class Files) from XSD at run time and package the same to an EAR.