I've got a xsd file with over 100 types defined in it. I generated java code with xmlbeans binding, and then I can use
MyType.Factory.newInstance();