- From: Tom Wason <wason@mindspring.com>
- Date: Fri, 8 Jun 2001 09:10:00 -0400
- To: <xmlschema-dev@w3.org>
Try this:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
<xsd:element name="X">
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="a"/>
<xsd:element ref="b"/>
<xsd:element ref="c"/>
<xsd:element ref="d"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
. . .
</xsd:schema>
Thomas D. Wason, Ph.D.
+1 919.839.8187
wason@mindspring.com
http://www.twason.com
1421 Park Drive
Raleigh, North Carolina 27605 USA
-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On
Behalf Of Deepa Nadig
Sent: Friday, June 08, 2001 6:41 AM
To: xmlschema-dev@w3.org
Subject: schema doubt
Hi
I have a scenario where I have 4 child elements(a,b,c,d) within a parent
element X. a,b,cd can appear in any order within X and any number of
occurences.
I want to know how to write a schema file meeting the above requirement.
Note : I tried "all" data structure but then it allows 0 or 1 occurence of
a,b,c or d. This does not meet my requirement. I need to have flexibility of
0 or more occurences of a,b,c and d.
Any suggestions will be of great help. But please make it fast. Very urgent.
Regards
Deepa
Received on Friday, 8 June 2001 09:11:47 UTC