Hi folks,

I've been struggling with this issue for the past couple days, and could use 
any guidance you can provide.  I have a set of schemas that have been compiled 
(using XmlBeans.compileXsd()) into an array of SchemaTypes.  When I am working 
with one of those SchemaTypes I need the ability to find out:

1) What valid child elements of this type are (i.e., SchemaTypes representing 
those children)
2) What valid attributes of this type are  (i.e., SchemaTypes representing 
those attributes)

For example, I have a reference to a SchemaType that contains the definition of 
(namespace references removed for simplicity):

...
      <element name="Compliance">
        <complexType>
          <sequence>
            <element minOccurs="0" maxOccurs="1" name="company" type="Company" 
/>
            <element minOccurs="0" maxOccurs="1" name="confidence" 
type="string" />
          </sequence>
        </complexType>
      </element>
...

I am able to retrieve it's name fine, but I cannot find a way to retrieve the 
SchemaType objects representing its two children, "Company" and "confidence".  
I've tried numerous suggestions I was able to find online, the most promising 
of which was:

http://www.mail-archive.com/[email protected]/msg00244.html

But that approach did not result in an array of two SchemaTypes as expected.  I 
always reviewed all XmlBeans tutorials, but did not find any examples of this 
type of deep processing on SchemaType objects.  Additionally, the Javadocs are 
fairly vague for many SchemaType methods, unfortunately.

In general (not just with this example), given a SchemaType, how can one find 
all of its children SchemaTypes?

Thanks,
Vance

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

Reply via email to