Sorry, Vance, XmlBeans doesn't keep track of this information. You would need to keep track of it yourself, top-down.
Radu -----Original Message----- From: Vance Vagell [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 3:41 PM To: [email protected] Subject: Finding which compositor is in effect 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] Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

