XMLBeans 2.0 - Problem with derived/extended schema elements

2010-03-12 Thread Sri Harsha Yenuganti
Hi , Here is the problem. I have the following interfaces ( These interfaces are generated by XMLBeans ) : -- Interface AddressType { ... } Interface EmployeeAddress extends AddressType { .. } I have the following implementation classes ( These classes

Re: XMLBeans 2.0 - Problem with derived/extended schema elements

2010-03-12 Thread Jacob Danner
This sounds like a Java problem more than an XMLBeans problem. From the sounds of it you are trying to cast up. In other words you AddressType - Cannot be cast to - EmployeeAddress But you were expecting something like this. EmployeeAddress - Can be cast to - AddressType Rather than use