Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Multiple and circular import/include >Thread Next - Attribute Usage using the maxOccurs contruct with sequences.To: xmlschema-dev@--.--- Date: 3/14/2005 12:56:00 AM 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> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
