Hi everyone, I have a schema definition like the following fragment:
... <xsd:choice> <xsd:element name="name" type="xsd:string"/> <xsd:sequence> <xsd:element name="firstName" type="xsd:string"/> <xsd:element name="middleName" type="xsd:string" minOccurs="0"/> <xsd:element name="lastName" type="xsd:string"/> </xsd:sequence> </xsd:choice> ... In my code I have a reference to the SchemaType of a "name" element. From that SchemaType, how can I determine which compositor controls that element (in this example, it would be SchemaParticle.CHOICE)? I've tried the following, but containerField always comes back null: SchemaField containerField = schemaType.getContainerField(); SchemaParticle contentModel = containerField.getType().getContentModel(); if (contentModel != null && contentModel.getParticleType() == SchemaParticle.CHOICE) { ... } In this same example, I would also need to be able to find out that a "firstName" element is part of a SchemaParticle.SEQUENCE compositor. In my tests, the containerfield for that is also always null. Any ideas? Thanks, Vance --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]