> > I had difficulty then XML element is not present (they are optional in
> > schema). The list is empty, even there was a text inside. I will expect
that
> > then elements are optional and there is text I will get List with single
> > String not empty list.
>
> So you are saying that if I have a schema like this:
>
> <xs:element name="foo">
> <xs:complexType mixed="true">
> <xs:sequence>
> <xs:element name="optional" type="xs:int" minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> and an instance like this:
>
> <foo> text only! </foo>
>
> then you'll unmarshal an empty list?
Yes.
I will try to extract this from my program as test case this week and I will
sand it to you.
Regards
Arek