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

RE: schema doubt

From: Tom Wason <wason@mindspring.com>
Date: Fri, 8 Jun 2001 09:10:00 -0400
To: <xmlschema-dev@w3.org>
Message-ID: <NEBBJIDAALNJAOPHOLJJEEGDEOAA.wason@mindspring.com>
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:choice minOccurs="0" maxOccurs="unbounded">
        <xsd:element ref="a"/>
        <xsd:element ref="b"/>
        <xsd:element ref="c"/>
        <xsd:element ref="d"/>
   . . .

Thomas D. Wason, Ph.D.
+1 919.839.8187
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


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

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.

Received on Friday, 8 June 2001 09:11:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC