Anna,

Just get the base type and call the #enumerate method.

XMLType base = complexType.getBaseType().

if (XMLType.isComplexType()) {
    ComplexType ctBase = (ComplexType);  
    Enumeration enum = ctBase.enumerate();
    while (enum.hasMoreElements()) {
       Structure struct = (Structure) enum.nextElement();
       ...
    }
}

--Keith

> Anna Afonchenko wrote:
> 
> Is there a way to get the elements defined in the extension of the
> complexContent for a complexType element?
> E.g., given following schema snippet if I have ElementDecl holding the
> div element, can I get the extension elements?
> I can't find anything like this in the API.
> 
> <xs:element name="div">
> 
> <xs:annotation>
> 
> <xs:documentation>
> 
> generic language/style container
> 
> </xs:documentation>
> 
> </xs:annotation>
> 
> <xs:complexType mixed="true">
> 
> <xs:complexContent mixed="true">
> 
> <xs:extension base="Flow">
> 
> <xs:attributeGroup ref="attrs"/>
> 
> </xs:extension>
> 
> </xs:complexContent>
> 
> </xs:complexType>
> 
> </xs:element>
> 
> Thank you very much for help.
> 
> Anna
> 
>     ---------------------------------------------------------------
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user



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

Reply via email to