Using the SOM how do I set an element declaration's type to anyType? I
have tried the following which produces an error:

Schema schema = new Schema();
...
ElementDecl elDec = new ElementDecl(schema);
AnyType any = new AnyType(schema);
varElDec.setType(any);
...

java.lang.IllegalArgumentException: The parent of 'anyType' cannot be
changed.
  at org.exolab.castor.xml.schema.AnyType.setParent(AnyType.java:183)
  at
org.exolab.castor.xml.schema.ElementDecl.setType(ElementDecl.java:665)

Any help would be appreciated.

Thanks,

Jasmin Wason

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to