Monday, February 24, 2014

Schema (XSD) Generation

Creating Java pojo files from Schema (xsd) :
xjc -p  com.jini.jaxb.beans employee.xsd
"%java_home%\bin\xjc" -p  com.jini.jaxb.beans employee.xsd
Creating Schema (xsd) from Java pojo file :
schemagen -cp bin com\jini\jaxb\beans\Employee.java
"%java_home%\bin\schemagen" -cp bin com\jini\jaxb\beans\Employee.java
Online XML to XSD generator :
http://www.freeformatter.com/xsd-generator.html

No comments: