using the maxOccurs contruct with sequences.

In the following example, there are two representations of an unbounded 
sequence of elements in  "ReportOptionsModel".   Is the first 
representation ever justified?  If it is, when should it be used?

----------------------------------------- 

<?xml version="1.0" encoding="UTF-8"?>
<w3cSchema:schema 
xmlns:StandardType="http://www.countrywide.com/SMTG/XMLSchema/StandardType" 
xmlns:TransactionClass="http://www.countrywide.com/SMTG/XMLSchema/TransactionClass" 
xmlns:w3cSchema="http://www.w3.org/2001/XMLSchema" 
xmlns:AIRulesServiceRunModel="http://www.countrywide.com/SMTG/XMLSchema/AIRulesServiceRunModel" 
targetNamespace="http://www.countrywide.com/SMTG/XMLSchema/AIRulesServiceRunModel" 
elementFormDefault="unqualified" attributeFormDefault="unqualified">
        <w3cSchema:complexType name="ReportOptionsModel1">
                <w3cSchema:sequence maxOccurs="unbounded">
                        <w3cSchema:element name="Filter"/>
                </w3cSchema:sequence>
        </w3cSchema:complexType>
        <w3cSchema:complexType name="ReportOptionsModel2">
                <w3cSchema:sequence>
                        <w3cSchema:element name="Filter" 
maxOccurs="unbounded"/>
                </w3cSchema:sequence>
        </w3cSchema:complexType>
</w3cSchema:schema>

Received on Monday, 14 March 2005 16:56:38 UTC