Hello,

i am new to xmlbeans and got stuck with the same problem.
my schema consists of 200 types
I dont want to compare all types with the xquery result.

***********************************************
final Shape shape = Shape.Factory.parse(someShapteInput);

if(shape instanceof Circle) {
 final Circle = (Circle) shape;
 // do whatever you want with a circle
} else if(shape instanceof Square) {
 final Square square = (Square)shape;
.
.
.

********************************************}


i dont see how andrejs way could work for me.
(SchemaType instanceType = xo.type)

Does it work?
Is there another solution?

Thanks,

Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to