Query in schema

Hi Everyone,
I am new to XML schema and have run into a problem while defining a schema
for one of our project.
The requirement is that any of the elements defined in the complex type
below is not mandatory,
but atleast one of them is required.


<xsd:complexType name="HorizontalDetail">
<xsd:sequence>
<xsd:element name="FirstName" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="LastName" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="EmailId" type="StrWithMaxLen50" minOccurs="0"/>
<xsd:element name="Telephone" type="StrWithMaxLen40" minOccurs="0"/>
<xsd:element name="UnitNo" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="StreetNo" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="StreetName" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="Location" type="LocationType" minOccurs="0"/>
<xsd:element name="ShortDescription" type="StrWithMaxLen200" minOccurs="0"/>
<xsd:element name="LongDescription" type="StrWithMaxLen2000" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>


Pls help.
Thanks in advance...


Thanks
Seema

Received on Friday, 12 July 2002 08:27:12 UTC