W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2008

Re: maxOccurs bug

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Mon, 10 Mar 2008 08:25:25 +0200
To: Chris <jesdisciple@gmail.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20080310062525.GB17046@karelia>

Hi Chris,

Chris <jesdisciple@gmail.com> writes:

> <xsd:all>
>   <xsd:element name="example" maxOccurs="2"/>
> </xsd:all>

The validator you are using is correct: elements within the 'all'
compositor cannot have maxOccurs greater than 1.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde
Received on Monday, 10 March 2008 06:42:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:02 GMT