This question has been asked in various guises - but I feel there is still room to catalogue this further.
I have an xsd with two element definitions
<
If nillable="true"
together with minOccurs="0"
it is impossible to represent the values with just a String
. What would null
mean? Does it mean that it was null, or that it occurred 0 times? But I guess that is somewhat moot when it comes to just a String.
Compare with empty list. A null list is certainly different to an empty one.