Title: XML Schema

Hello,

I have a question regarding XML schema indicators.

I have an element that has attributes, but only one of the attributes can be define in each element.
Can I use the choice indicator for attributes as well as for elements?

Is the following legal:

        <xs:element name="Aliza">
                <xs:choice>
                        <xs:attribute name="ID" type="xs:string" use="required"/>
                        <xs:attribute name="AGE" type="xs:integer" use="required"/>                    
                </xs:choice>
        </xs:element>

Thanks, Aliza


**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************

Reply via email to