In Eclipse
, right click on the xsd
file you want to get --> Generate --> Java... --> Generator: "Schema to JAXB Java Classes".
I just faced the same problem, I had a bunch of xsd
files, only one of them being the XML Root Element
and it worked well what I explained above in Eclipse