Re: Using either simple or element content

Hi Kieran Dolan

Use minOccurs in mixed content complex type, see the schema. hope this will help you.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
       <xsd:element name="x" type="xtype"/>
       <xsd:complexType name="xtype" mixed="true">
            <xsd:sequence>
                   <xsd:element name="y" type="xsd:string" minOccurs="0"/>
            </xsd:sequence>
      </xsd:complexType>
</xsd:schema>

Lax



---------------------------------
Do You Yahoo!?
Make a great connection at Yahoo! Personals.

Received on Tuesday, 23 October 2001 09:17:30 UTC