I am the author of the xsd-gen tool. I also turned the tool into a library and uploaded the artifact to Maven Central:
<dependency> <groupId>org.wiztools</groupId> <artifactId>xsd-gen</artifactId> <version>0.2.1</version> </dependency>
Now it is easy to use as a library in your application:
import org.wiztools.xsdgen.XsdGen; import java.io.File; import java.io.FileOutputStream; ... XsdGen gen = new XsdGen(); gen.parse(new File("in.xml")); File out = new File("out.xsd"); gen.write(new FileOutputStream(out));
Subhash chandran
source share