We can convert xsd files to java file vert easily using xjc tool .
Just type the following command in command prompt ( assuming you have the xsd file in same working directory )
xjc test.xsdAfter running the command successfully , you will find all the classes generated automatically with correct package structure . XJC is inbuilt for java version 6 and higher . Post Comments and Suggestions !!