Romilson Cruz de Carvalho wrote:
> 
> Hi .. i have the two complexTypes .. and my need is put the SUBCLASS complexType as 
>a derivation from
> MAINCLASS.
> 
>   <xs:complexType name='MAINCLASS'>
>     <xs:attribute       name='OID'  type='xs:string' use='required'/>
>     <xs:attribute       name='type' type='xs:string' use='required'/>
>   </xs:complexType>
> 
>   <xs:element name='SUBCLASS'>
>     <xs:complexType>
>         <xs:complexContent>
>           <xs:extension base='MAINCLASS'>
>           <xs:sequence>
>             <xs:element name="jjjjj" type='string'/>
>             </xs:sequence>
>         </xs:extension>
>         <xs:complexContent>

Your missing a "/" before xs:complexContent....

--Keith

>     </xs:complexType>
>   </xs:element>
> 
> The code above is not valid .. because the processor said that element name jjjjj
> can not stay in that place.
> 
> But .. i need to derive the class SUBCLASS , ,and add a element to SUBCLASS..
> How to do it ?
> 
> Thanks.
> 
> Romilson
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

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

Reply via email to