Hello everybody! I've just started using XMLBEANS to generate beans from an XSD. Using the compiler scomp I generate a set of Interfaces and a set of Classes taht implement the interfaces. I guss the problem shoul be stupid, but I am not able to istantiate and use the classes that implements the interfaces. Suppose I have PersonImpl -.-.-.->Person To istantiate PersonImpl I write: PersonImpl myImpl = new PersonImpl(Person.type); myImpl.setName("Abraham Lincoln"); The istantiation works fine but the setName throws a null pointer exception!!!! I really cannot understand how to manage these classes... unhopefully the xmlbeans apache documentation lacks this aspect. Thanx for the help