I would not say so, no. An XML schema is much richer in terms of types and defined structures, so any schema you create from Java will be quite simple and expressionless.
In all cases, generate the source schema from your code, but then you should really embellish the result and save it as a first-class citizen, not a generated product. After it is created, you can connect it back to the JAXB / unmarshaller marker as a verification level.
source share