W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Re: Using either simple or element content

From: Lakshmi Narasimhan <laxnars@yahoo.com>
Date: Tue, 23 Oct 2001 08:14:08 -0400 (EDT)
Message-ID: <20011023121358.24016.qmail@web12102.mail.yahoo.com>
To: xmlschema-dev@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT