[Home] [By Thread] [By Date] [Recent Entries]


Sure, no problem:
 
<xsd:element name="ParentNode">
  <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded">
      <xsd:element minOccurs="0" maxOccurs="1" name="A"/>
      <xsd:element minOccurs="0" maxOccurs="1" name="B"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>
 
That should do it for you...
 
Bryce K. Nielsen
SysOnyx, Inc. (http://www.sysonyx.com)
Makers of xmlLinguist, the EDI-to-XML Translator
(http://www.sysonyx.com/products/xmllinguist)
 
 
----- Original Message -----
From: Dev Kon
Sent: Tuesday, December 02, 2003 9:43 AM
Subject: XML Schema newbie - are multiple unordered children occurrences possible?

Using XML Schema def, is it possible to create an element with children (A and B) where both could have multiple UNORDERED occurrences within the parent - (A B A A B A A B B ...) ?

TIA


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member