I need to generate a XML from an XSD schema in Java.
I've looked at XMLBeans and JAXB, but I would like to avoid creating new Java classes for every schema I have.
Is there any way to do this without creating new classes and compiling them?
Printable View
I need to generate a XML from an XSD schema in Java.
I've looked at XMLBeans and JAXB, but I would like to avoid creating new Java classes for every schema I have.
Is there any way to do this without creating new classes and compiling them?
mmm
Not really. You'll always have to write or generate code that will create the XML document. In my experience JDOM is the right choice for creating small documents whose structure will not change frequently.