Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xsd2java tools?

Tags:

java

xml

xsd

Is there a tool for converting an xsd in java class? I remember that I used one called xsd2java but I don't remember where it is.

like image 696
michele Avatar asked Mar 12 '11 19:03

michele


3 Answers

You can use the XJC binding compiler

http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/xjc.html

But it creates jaxb compliant java objects with annotations. So you would have to remove the jaxb stuff

like image 79
rogermushroom Avatar answered Sep 27 '22 22:09

rogermushroom


You can edit wsdl2java.bat OR wsdl2java.sh in axis installation folder and replace org.apache.axis2.wsdl.WSDL2Java with org.apache.axis2.schema.XSD2Java, better to saveAS wsdl2java.bat file to xsd2Java.bat

like image 37
Fahad Avatar answered Sep 27 '22 21:09

Fahad


Apache's XMLBeans: http://xmlbeans.apache.org/

Use scomp to generate Java classes from the desired schema.

like image 20
Daniel Voina Avatar answered Sep 27 '22 20:09

Daniel Voina