Hi,
I'm having some trouble when I generate java source code for xml schematas
which contain element contructs with settings minOccur = 0 and maxOccur = 0.
Castor always treats these elements internally as Vectors / Collections,
although these elements obviously should never appear in an appropriate xml
document.
For example, the following part of a schema
<xsd:element name="TaskDate" type="xsd:dateTime" nillable="true"
minOccurs="0" maxOccurs="0"/>
will generate a java class with a field named _dateTimeList of type vector,
but this vector will always be empty!
Is there a reason why Castor doesn't check for this kind of definition ?
Certainly it's possible to delete this line from the schema, because this
element will never be used. The reason why I have to specify the element
this way is because this element is party of a complexType which is derived
from another complexType (!), which has a maxOccurs setting of TaskDate of
"1" !
Thx
Martin
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev